Add clang and clojure configuration
This commit is contained in:
parent
af539db4c6
commit
e41192395c
3 changed files with 32 additions and 1 deletions
16
20clang.el
Normal file
16
20clang.el
Normal 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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue