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:
Maciej 2018-09-09 00:31:51 +03:00
parent 4d5f300113
commit 1a911716c0
Signed by: maciej
GPG key ID: 41D62D42D3B0D765
38 changed files with 513 additions and 18 deletions

25
old/languages/elixir.el Normal file
View 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