From 175361abefd56025bf8e6b4eec10424838b5c5d4 Mon Sep 17 00:00:00 2001 From: fpi Date: Sat, 9 May 2020 13:16:09 +0200 Subject: Add basic org mode prettify symbols --- emacs-init.org | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/emacs-init.org b/emacs-init.org index b7d2f47..11dfd82 100644 --- a/emacs-init.org +++ b/emacs-init.org @@ -1930,6 +1930,22 @@ Use imagemagick and standalone class for latex preview. #+begin_src emacs-lisp (use-package ol-bbdb) #+end_src +*** prettify symbols +Set some prettify symbols for org mode. +#+begin_src emacs-lisp +(defun fpi/add-org-prettify-symbols () + "Beautify Org Checkbox Symbol" + (setq prettify-symbols-alist + (append prettify-symbols-alist + '(("#+BEGIN_SRC" . ?») + ("#+END_SRC" . ?«) + ("#+begin_src" . ?») + ("#+end_src" . ?«) + ("[ ]" . ?☐) + ("[X]" . ?☑ ) + ("[-]" . ?❍ ))))) +(add-hook 'org-mode-hook 'fpi/add-org-prettify-symbols) +#+end_src *** org-roam #+begin_src emacs-lisp (use-package org-roam -- cgit v1.2.3