aboutsummaryrefslogtreecommitdiff
path: root/Doom/.doom.d/org
diff options
context:
space:
mode:
authordx <aryadevchavali1@gmail.com>2020-05-05 20:48:23 +0100
committerdx <aryadevchavali1@gmail.com>2020-05-05 20:54:55 +0100
commit717181328c6ad696e4f5cd6f8abdec3ee009b28f (patch)
treea2b8e71bfab9ff1179bece4a92631642c35cfe7f /Doom/.doom.d/org
parentcbe9926bc40a086b205c5eecb745433e070ff5d0 (diff)
downloaddotfiles-717181328c6ad696e4f5cd6f8abdec3ee009b28f.tar.gz
dotfiles-717181328c6ad696e4f5cd6f8abdec3ee009b28f.tar.bz2
dotfiles-717181328c6ad696e4f5cd6f8abdec3ee009b28f.zip
+prettify-symbols config in packages config
This is easier to do, I found another problem with it so I moved the C++ config to one universal one.
Diffstat (limited to 'Doom/.doom.d/org')
-rw-r--r--Doom/.doom.d/org/config.org76
1 files changed, 56 insertions, 20 deletions
diff --git a/Doom/.doom.d/org/config.org b/Doom/.doom.d/org/config.org
index 36a0644..9c22bbe 100644
--- a/Doom/.doom.d/org/config.org
+++ b/Doom/.doom.d/org/config.org
@@ -145,6 +145,62 @@ Add CMakeLists.txt to projectile-project-roots.
(setq projectile-tags-command
"ctags -e -R --exclude=dist --exclude=.ccls --exclude=.ccls-cache"))
#+END_SRC
+** Prettify symbols
+Configuration for the module (pretty-code).
+*** Setup symbols
+Some symbols aren't present in the current doom version, or my fonts are
+screwing up, so I wrote them here. Maybe a bit of a bandage over broken glass,
+but still at least it's something.
+#+BEGIN_SRC elisp
+(setq +pretty-code-symbols '(:name "»"
+ :src_block "»"
+ :src_block_end "«"
+ :quote "“"
+ :quote_end "”"
+ :lambda "λ"
+ :def "ƒ"
+ :composition "∘"
+ :map "↦"
+ :null "∅"
+ :true "𝕋"
+ :false "𝔽"
+ :int "ℤ"
+ :float "ℝ"
+ :str "𝕊"
+ :bool "𝔹"
+ :not "¬"
+ :in "∈"
+ :not-in "∉"
+ :and "∧"
+ :or "∨"
+ :for "∀"
+ :some "∃"
+ :return "⟼"
+ :yield "⟻"
+ :tuple "⨂"
+ :pipe "|"
+ :dot "•"))
+#+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"
+ :or "||"
+ :and "&&"
+ :not "!"
+ :bool "bool"
+ :str "string"
+ :str "std::string"
+ :float "float"
+ :int "int"
+ :false "false"
+ :true "true"
+ :null "nullptr"))
+#+END_SRC
* Language Config
Configuration for various languages which I feel can be useful
** C-style languages
@@ -172,26 +228,6 @@ Emacs doesn't have the full range of styles that I want, so lemme just do it mys
(label . 0)
(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"
- :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
VSCode style web-kit window.