~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,7 +166,8 @@ 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.
#+BEGIN_SRC elisp
(after! cc-mode
(c-add-style "Custom"
(c-add-style
"user"
'((c-basic-offset . 2)
(c-comment-only-line-offset . 0)
(c-hanging-braces-alist (brace-list-open)
@@ -182,7 +183,7 @@ Emacs doesn't have the full range of styles that I want, so lemme just do it mys
(substatement-label . 0)
(access-label . 0)
(label . 0)
(statement-cont . +)))))
(statement-cont . +))))
#+END_SRC
** LSP
Add lsp-ui-doc-mode to lsp-ui-mode: allows you to see documentation in a little