From 9c9fae66d9dd9348b9f9066c55514a15aa14223d Mon Sep 17 00:00:00 2001 From: Lucien Cartier-Tilet Date: Sat, 12 Sep 2020 00:47:28 +0200 Subject: [PATCH] [Emacs] Updated configuration for C and C++ layer --- org/config/spacemacs.org | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/org/config/spacemacs.org b/org/config/spacemacs.org index 7627a72..cf51d93 100644 --- a/org/config/spacemacs.org +++ b/org/config/spacemacs.org @@ -403,20 +403,19 @@ #+END_SRC Next, you can find the C/C++ layer for which I set the default language for - ~.h~ files to be C. I also enabled support for the C++11 standard, the - Google coding style for C++, support for subprojects and organization of - the include directives on a file save. I also set a couple of LSP-related - variables, such as the LSP executable for C/C++ for its CCLS backend and - some highlight variables. + ~.h~ files to be C. I also enabled support for subprojects and organization + of the include directives on a file save. I also set a couple of + LSP-related variables, such as the LSP executable for C/C++ for its CCLS + backend and some highlight variables. #+BEGIN_SRC emacs-lisp (c-c++ :variables c-c++-default-mode-for-headers 'c-mode c-c++-adopt-subprojects t - c-c++-enable-google-style t c-c++-enable-c++11 t c-c++-backend 'lsp-clangd - c-c++-lsp-sem-highlight-method 'overlay - c-c++-lsp-sem-highlight-rainbow t + c-c++-lsp-enable-semantic-highlight t + c-c++-lsp-semantic-highlight-method 'overlay + c-c++-lsp-semantic-highlight-rainbow t c++-enable-organize-includes-on-save t) #+END_SRC