Get rid of LSP for C

This commit is contained in:
Camden Dixie O'Brien 2023-12-08 11:33:17 +00:00
parent 976cd7c6b0
commit 56bed6b44a

View File

@ -674,15 +674,7 @@
#+end_src
** C
For C there is =clangd= implementing LSP. Assuming that's
installed and on the =PATH=, we can just hook =lsp-mode= into the
default mode and there will be much rejoicing.
#+begin_src emacs-lisp
(add-hook 'c-mode-hook #'lsp-deferred)
#+end_src
As for indenting style, I like BSD-style but with 4-char-wide indents
For indenting style, I like BSD-style but with 4-char-wide indents
#+begin_src emacs-lisp
(add-hook 'c-mode-hook (lambda ()
@ -699,8 +691,7 @@
There's a lot of boilerplate in C, so I want YASnippet enabled.
#+begin_src emacs-lisp
(add-hook 'c-mode-hook (lambda ()
(yas-minor-mode)))
(add-hook 'c-mode-hook (lambda () (yas-minor-mode)))
#+end_src
** C++