Create new, a little bit better structured configuration
* Group configuration by package, and only then by language mode * Slim down all the languages
This commit is contained in:
parent
4d5f300113
commit
1a911716c0
38 changed files with 513 additions and 18 deletions
|
|
@ -1,29 +0,0 @@
|
|||
;;; Rust -- summary
|
||||
;;; Commentary:
|
||||
|
||||
;;; Code:
|
||||
|
||||
;;========== Editor config =========================
|
||||
(defun editor-config-rust ()
|
||||
"Editor configuration for Rust."
|
||||
(set-indent 4)
|
||||
(set-width-99))
|
||||
|
||||
;;========== Code completion =======================
|
||||
(defun completion-config-rust ()
|
||||
"Code completion and inspection for Rust."
|
||||
(racer-mode 1)
|
||||
(company-mode 1)
|
||||
(flycheck-mode 1)
|
||||
(flymake-mode 1)
|
||||
(flycheck-rust-setup)
|
||||
(set (make-local-variable 'company-backends)
|
||||
'((company-racer company-capf company-dabbrev-code company-yasnippet
|
||||
company-files))))
|
||||
|
||||
;;========== Hooks =================================
|
||||
(add-hook 'rust-mode-hook 'editor-config-rust)
|
||||
(add-hook 'rust-mode-hook 'completion-config-rust)
|
||||
|
||||
(provide 'rust)
|
||||
;;; rust.el ends here
|
||||
Loading…
Add table
Add a link
Reference in a new issue