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
25
old/languages/elixir.el
Normal file
25
old/languages/elixir.el
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
;;; Elixir -- summary
|
||||
;;; Commentary:
|
||||
|
||||
;;; Code:
|
||||
;;========== Editor config =========================
|
||||
(defun editor-config-elixir ()
|
||||
"Editor configuration for Elixir."
|
||||
(set-indent 2)
|
||||
(set-width-80)
|
||||
(ruby-end-mode 1))
|
||||
|
||||
;;========== Code completion =======================
|
||||
(defun completion-config-elixir ()
|
||||
"Code completion and inspection for Elixir."
|
||||
(alchemist-mode 1)
|
||||
(company-mode 1)
|
||||
(set (make-local-variable 'company-backends)
|
||||
'((alchemist-company company-yasnippet company-files))))
|
||||
|
||||
;;========== Hooks =================================
|
||||
(add-hook 'elixir-mode-hook 'editor-config-elixir)
|
||||
(add-hook 'elixir-mode-hook 'completion-config-elixir)
|
||||
|
||||
(provide 'elixir)
|
||||
;;; elixir.el ends here
|
||||
Loading…
Add table
Add a link
Reference in a new issue