Move erlang to LSP
This commit is contained in:
parent
e586cda3c1
commit
617aa409b5
9 changed files with 90 additions and 81 deletions
|
|
@ -8,20 +8,29 @@
|
|||
|
||||
(defun activate-clang-mode ()
|
||||
"Goodies for editing c files."
|
||||
(set-indent 8)
|
||||
|
||||
;; Set column width to 100
|
||||
(column-enforce-n 100)
|
||||
|
||||
;; Set indentation to 4 chars
|
||||
(if (boundp 'c-basic-offset)
|
||||
(setq-local c-basic-offset 4)
|
||||
(defvar c-basic-offset 4))
|
||||
|
||||
(if (boundp 'c-default-style)
|
||||
(setq-local c-default-style "bsd")
|
||||
(defvar c-default-style "bsd"))
|
||||
|
||||
(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)
|
||||
)))
|
||||
"uctags -e -R --languages=C -f %sTAGS %s/*"
|
||||
(projectile-project-root) (projectile-project-root))))
|
||||
|
||||
(add-hook 'c-mode 'activate-clang-mode)
|
||||
(add-hook 'c-mode-hook 'activate-clang-mode)
|
||||
|
||||
(provide 'languages/clang)
|
||||
;;; clang.el ends here
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue