Add :ui pretty-code & set-pretty-symbols! autodef

Along with defaults for C/C++, elm, elisp, js, typescript, web-mode, and
org-mode. Thanks to @ar1a for inspiration.
This commit is contained in:
Henrik Lissner 2018-06-16 19:32:25 +02:00
parent b991af552c
commit ec8ae0bedc
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
9 changed files with 183 additions and 5 deletions

View file

@ -48,7 +48,8 @@
+org|setup-popups-rules
+org|setup-agenda
+org|setup-keybinds
+org|setup-hacks))
+org|setup-hacks
+org|setup-pretty-code))
(add-hook! 'org-mode-hook
#'(doom|disable-line-numbers ; org doesn't really need em
@ -151,6 +152,13 @@ unfold to point on startup."
((size . 0.2))
((quit) (select . t))))))
(defun +org|setup-pretty-code ()
"Setup the default pretty symbols for"
(set-pretty-symbols! 'org-mode
:name "#+NAME:"
:src_block "#+BEGIN_SRC"
:src_block_end "#+END_SRC"))
(defun +org|setup-ui ()
"Configures the UI for `org-mode'."
(setq-default