Get rid of LSP for C
This commit is contained in:
parent
976cd7c6b0
commit
56bed6b44a
13
config.org
13
config.org
@ -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++
|
||||
|
Loading…
x
Reference in New Issue
Block a user