Automatically run ctags command on save

This commit is contained in:
Maciej 2019-07-11 23:20:16 +03:00
parent cebb82f39e
commit b16f9bbd22
Signed by: maciej
GPG key ID: 41D62D42D3B0D765
4 changed files with 42 additions and 16 deletions

View file

@ -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))))