Automatically run ctags command on save
This commit is contained in:
parent
cebb82f39e
commit
b16f9bbd22
4 changed files with 42 additions and 16 deletions
|
|
@ -26,10 +26,14 @@
|
|||
(setq ruby-insert-encoding-magic-comment nil)
|
||||
|
||||
;; Company list override
|
||||
(add-to-list (make-local-variable 'company-backends) '(company-etags company-yasnippet))
|
||||
(add-to-list (make-local-variable 'company-backends)
|
||||
'(company-etags company-yasnippet))
|
||||
|
||||
;; Automatically update tags on save
|
||||
(ctags/update-this-mode-on-save 'enh-ruby-mode)
|
||||
|
||||
;; Set specific ctags command
|
||||
(setq-local ctags-refresh-command
|
||||
(setq-local ctags/refresh-command
|
||||
(format "ctags -e -R --languages=ruby -f %sTAGS %s. $(bundle list --paths)"
|
||||
(projectile-project-root) (projectile-project-root))))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue