aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorodave <aryadevchavali1@gmail.com>2020-04-06 15:56:35 +0100
committerodave <aryadevchavali1@gmail.com>2020-04-06 15:56:35 +0100
commita8d4f4bcb77498deb53cc6834c0152855f965df6 (patch)
treed8b85cb080d9aadbdd7e09d724b6dfeac224d36f
parentb3128c8fd1e942d5469a238324bcf4c3e13643b6 (diff)
downloaddotfiles-a8d4f4bcb77498deb53cc6834c0152855f965df6.tar.gz
dotfiles-a8d4f4bcb77498deb53cc6834c0152855f965df6.tar.bz2
dotfiles-a8d4f4bcb77498deb53cc6834c0152855f965df6.zip
~split C/C++ configuration into sections
-rw-r--r--doom.d/org/config.org10
1 files changed, 9 insertions, 1 deletions
diff --git a/doom.d/org/config.org b/doom.d/org/config.org
index e618b13..08fcf78 100644
--- a/doom.d/org/config.org
+++ b/doom.d/org/config.org
@@ -167,6 +167,8 @@ Keybinds to org-mode for flyspell package
* Language Config
Configuration for various languages which I feel can be useful
** C-style languages
+Configuration for C and C++.
+*** User c-style
Emacs doesn't have the full range of styles that I want, so lemme just do it myself.
#+BEGIN_SRC elisp
(after! cc-mode
@@ -187,7 +189,13 @@ 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
+*** Pretty symbols
+Setup pretty symbols specifically for C++. I import the string type via `using
+std::string` which isn't supported in standard doom. So I add support for it.
+#+BEGIN_SRC elisp
+(after! cc-mode
(set-pretty-symbols!
'(c-mode c++-mode)
:return "return"