From d87edaa44d0d4ff391438ac4e30ffb88ba29bc3c Mon Sep 17 00:00:00 2001 From: Undead Kernel Date: Fri, 3 Apr 2020 12:01:34 +0200 Subject: [PATCH] lang/org: pretty symbols for old and new style org-mode recently changed the standard for naming blocks. Previously, it would use capitalized names; now it uses lower case names. E.g., #+BEGIN_SRC -> #+begin_src Also, add a "quote" symbol for the #+begin_quote block. --- modules/lang/org/config.el | 9 ++++++++- modules/ui/pretty-code/config.el | 2 ++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/modules/lang/org/config.el b/modules/lang/org/config.el index 143b9bc49..fa4fea716 100644 --- a/modules/lang/org/config.el +++ b/modules/lang/org/config.el @@ -163,8 +163,15 @@ Is relative to `org-directory', unless it is absolute. Is used in Doom's default (set-pretty-symbols! 'org-mode :name "#+NAME:" + :name "#+name:" :src_block "#+BEGIN_SRC" - :src_block_end "#+END_SRC")) + :src_block "#+begin_src" + :src_block_end "#+END_SRC" + :src_block_end "#+end_src" + :quote "#+BEGIN_QUOTE" + :quote "#+begin_quote" + :quote_end "#+END_QUOTE" + :quote_end "#+end_quote")) (defun +org-init-babel-h () diff --git a/modules/ui/pretty-code/config.el b/modules/ui/pretty-code/config.el index fd34c1f1a..6622c8fef 100644 --- a/modules/ui/pretty-code/config.el +++ b/modules/ui/pretty-code/config.el @@ -5,6 +5,8 @@ :name "»" :src_block "»" :src_block_end "«" + :quote "“" + :quote_end "”" ;; Functional :lambda "λ" :def "ƒ"