Add clang and clojure configuration

This commit is contained in:
Maciej 2019-05-02 09:55:54 +03:00
parent af539db4c6
commit e41192395c
Signed by: maciej
GPG key ID: 41D62D42D3B0D765
3 changed files with 32 additions and 1 deletions

16
20clang.el Normal file
View file

@ -0,0 +1,16 @@
(defun activate-clang-mode ()
"Goodies for editing c files"
(set-indent 4)
(column-enforce-n 80)
(add-to-list (make-local-variable 'company-backends)
'(company-etags company-yasnippet))
(setq-local
ctags-refresh-command
(format
"ctags -e -R --languages=C -f %sTAGS %s."
(projectile-project-root) (projectile-project-root)
)))
(add-hook 'c-mode-hook 'activate-clang-mode)