~custom -> user cstyle and formatting

This commit is contained in:
AChavali
2020-02-17 13:20:23 +00:00
parent be987a0737
commit 1e17f9a6f2

View File

@@ -166,23 +166,24 @@ Set-up config for ivy-posframe, particularly for positions
Emacs doesn't have the full range of styles that I want, so lemme just do it myself. Emacs doesn't have the full range of styles that I want, so lemme just do it myself.
#+BEGIN_SRC elisp #+BEGIN_SRC elisp
(after! cc-mode (after! cc-mode
(c-add-style "Custom" (c-add-style
'((c-basic-offset . 2) "user"
(c-comment-only-line-offset . 0) '((c-basic-offset . 2)
(c-hanging-braces-alist (brace-list-open) (c-comment-only-line-offset . 0)
(brace-entry-open) (c-hanging-braces-alist (brace-list-open)
(substatement-open after) (brace-entry-open)
(block-close . c-snug-do-while) (substatement-open after)
(arglist-cont-nonempty)) (block-close . c-snug-do-while)
(c-cleanup-list brace-else-brace) (arglist-cont-nonempty))
(c-offsets-alist (c-cleanup-list brace-else-brace)
(statement-block-intro . +) (c-offsets-alist
(knr-argdecl-intro . 0) (statement-block-intro . +)
(substatement-open . 0) (knr-argdecl-intro . 0)
(substatement-label . 0) (substatement-open . 0)
(access-label . 0) (substatement-label . 0)
(label . 0) (access-label . 0)
(statement-cont . +))))) (label . 0)
(statement-cont . +))))
#+END_SRC #+END_SRC
** LSP ** LSP
Add lsp-ui-doc-mode to lsp-ui-mode: allows you to see documentation in a little Add lsp-ui-doc-mode to lsp-ui-mode: allows you to see documentation in a little