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

@ -27,7 +27,7 @@
;; Set specific ctags command
(setq-local
ctags-refresh-command
ctags/refresh-command
(format
"ctags -e -R --languages=erlang -f %sTAGS %s. %slib/stdlib-* %slib/kernel-*"
(projectile-project-root) (projectile-project-root)
@ -44,4 +44,7 @@
(activate-erlang-mode)
;; Enable flycheck
(flycheck-select-checker 'erlang-otp))
(flycheck-select-checker 'erlang-otp)
;; Automatically update tags on save
(ctags/update-this-mode-on-save 'erlang-mode))