Improve ctags and company configuration
Set ctags command based on major mode Set different company backends based on major mode Completely abandon robe in favour of ctags for Ruby Set up Erlang configuration
This commit is contained in:
parent
4d3683eb4a
commit
d3c2c17ff9
10 changed files with 141 additions and 57 deletions
15
20elixir.el
15
20elixir.el
|
|
@ -1,2 +1,13 @@
|
|||
(add-hook 'elixir-mode 'alchemist-mode)
|
||||
(add-hook 'elixir-mode 'ruby-end-mode)
|
||||
(add-hook 'elixir-mode-hook 'alchemist-mode)
|
||||
(add-hook 'elixir-mode-hook 'ruby-end-mode)
|
||||
|
||||
(defun activate-elixir-mode ()
|
||||
"All things Elixir."
|
||||
(set-indent 2)
|
||||
(column-enforce-n 80)
|
||||
|
||||
;; Company list override
|
||||
(add-to-list (make-local-variable 'company-backends)
|
||||
'(alchemist-company company-yasnippet)))
|
||||
|
||||
(add-hook 'alchemist-mode-hook 'activate-elixir-mode)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue