aboutsummaryrefslogtreecommitdiff
path: root/doom.d/modules/config.org
diff options
context:
space:
mode:
authorAChavali <aryadevchavali1@gmail.com>2020-02-17 13:20:23 +0000
committerAChavali <aryadevchavali1@gmail.com>2020-02-17 13:20:23 +0000
commit1e17f9a6f2dff7e3cffb4bb12161494bc5c253ca (patch)
treeb33f4afaba9a3a86b60d8587655f91b3c30983a0 /doom.d/modules/config.org
parentbe987a0737921ef27aba1687464763491af42f45 (diff)
downloaddotfiles-1e17f9a6f2dff7e3cffb4bb12161494bc5c253ca.tar.gz
dotfiles-1e17f9a6f2dff7e3cffb4bb12161494bc5c253ca.tar.bz2
dotfiles-1e17f9a6f2dff7e3cffb4bb12161494bc5c253ca.zip
~custom -> user cstyle and formatting
Diffstat (limited to 'doom.d/modules/config.org')
-rw-r--r--doom.d/modules/config.org35
1 files changed, 18 insertions, 17 deletions
diff --git a/doom.d/modules/config.org b/doom.d/modules/config.org
index f7656c9..f8a48e8 100644
--- a/doom.d/modules/config.org
+++ b/doom.d/modules/config.org
@@ -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.
#+BEGIN_SRC elisp
(after! cc-mode
- (c-add-style "Custom"
- '((c-basic-offset . 2)
- (c-comment-only-line-offset . 0)
- (c-hanging-braces-alist (brace-list-open)
- (brace-entry-open)
- (substatement-open after)
- (block-close . c-snug-do-while)
- (arglist-cont-nonempty))
- (c-cleanup-list brace-else-brace)
- (c-offsets-alist
- (statement-block-intro . +)
- (knr-argdecl-intro . 0)
- (substatement-open . 0)
- (substatement-label . 0)
- (access-label . 0)
- (label . 0)
- (statement-cont . +)))))
+ (c-add-style
+ "user"
+ '((c-basic-offset . 2)
+ (c-comment-only-line-offset . 0)
+ (c-hanging-braces-alist (brace-list-open)
+ (brace-entry-open)
+ (substatement-open after)
+ (block-close . c-snug-do-while)
+ (arglist-cont-nonempty))
+ (c-cleanup-list brace-else-brace)
+ (c-offsets-alist
+ (statement-block-intro . +)
+ (knr-argdecl-intro . 0)
+ (substatement-open . 0)
+ (substatement-label . 0)
+ (access-label . 0)
+ (label . 0)
+ (statement-cont . +))))
#+END_SRC
** LSP
Add lsp-ui-doc-mode to lsp-ui-mode: allows you to see documentation in a little