Move erlang to LSP

This commit is contained in:
Maciej 2020-07-27 16:04:21 +03:00
parent e586cda3c1
commit 617aa409b5
Signed by: maciej
GPG key ID: 41D62D42D3B0D765
9 changed files with 90 additions and 81 deletions

View file

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