aboutsummaryrefslogtreecommitdiff
path: root/doom.d/modules
diff options
context:
space:
mode:
authorAChavali <aryadevchavali1@gmail.com>2020-02-17 13:22:02 +0000
committerAChavali <aryadevchavali1@gmail.com>2020-02-17 13:22:02 +0000
commitc91245e4e39b80cc7521c5becb93640ecd4a6908 (patch)
treec9173a8c80e222dd88e43aa3eb9ca1bd4565eb3f /doom.d/modules
parent1e17f9a6f2dff7e3cffb4bb12161494bc5c253ca (diff)
downloaddotfiles-c91245e4e39b80cc7521c5becb93640ecd4a6908.tar.gz
dotfiles-c91245e4e39b80cc7521c5becb93640ecd4a6908.tar.bz2
dotfiles-c91245e4e39b80cc7521c5becb93640ecd4a6908.zip
+pretty-symbols for c/c++ mode
std::string and string should be 'strings' for the c/c++ mode
Diffstat (limited to 'doom.d/modules')
-rw-r--r--doom.d/modules/config.org14
1 files changed, 14 insertions, 0 deletions
diff --git a/doom.d/modules/config.org b/doom.d/modules/config.org
index f8a48e8..39f72bd 100644
--- a/doom.d/modules/config.org
+++ b/doom.d/modules/config.org
@@ -184,6 +184,20 @@ Emacs doesn't have the full range of styles that I want, so lemme just do it mys
(access-label . 0)
(label . 0)
(statement-cont . +))))
+ (set-pretty-symbols!
+ '(c-mode c++-mode)
+ :return "return"
+ :or "||"
+ :and "&&"
+ :not "!"
+ :bool "bool"
+ :str "string"
+ :str "std::string"
+ :float "float"
+ :int "int"
+ :false "false"
+ :true "true"
+ :null "nullptr"))
#+END_SRC
** LSP
Add lsp-ui-doc-mode to lsp-ui-mode: allows you to see documentation in a little