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
14
20ruby.el
14
20ruby.el
|
|
@ -8,8 +8,8 @@
|
|||
|
||||
(message "Starting ctags process")
|
||||
(start-process-shell-command "ctags" "*ctags*"
|
||||
(format "ctags -e -R --languages=ruby -f %sTAGS %s. $(bundle list --paths)"
|
||||
(projectile-project-root) (projectile-project-root)))
|
||||
(format "ctags -e -R --languages=ruby -f %sTAGS %s. $(bundle list --paths)"
|
||||
(projectile-project-root) (projectile-project-root)))
|
||||
(set-process-sentinel (get-process "ctags") 'ctags-process-callback))
|
||||
|
||||
;; Ruby specific key bindings
|
||||
|
|
@ -33,7 +33,15 @@
|
|||
(column-enforce-n 80))
|
||||
|
||||
;; Do not insert magic encoding comment at the begining of each file
|
||||
(setq ruby-insert-encoding-magic-comment nil))
|
||||
(setq ruby-insert-encoding-magic-comment nil)
|
||||
|
||||
;; Company list override
|
||||
(add-to-list (make-local-variable 'company-backends) '(company-etags company-yasnippet))
|
||||
|
||||
;; Set specific ctags command
|
||||
(setq-local ctags-refresh-command
|
||||
(format "ctags -e -R --languages=ruby -f %sTAGS %s. $(bundle list --paths)"
|
||||
(projectile-project-root) (projectile-project-root))))
|
||||
|
||||
(add-hook 'enh-ruby-mode-hook 'activate-ruby-mode)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue