From 764691d31ab4ffd03feaf77f5e3a515974824b64 Mon Sep 17 00:00:00 2001 From: Jacopo De Simoi Date: Thu, 28 Jun 2018 09:01:55 +0200 Subject: [PATCH] Enable ligatures in org-mode --- global.org | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/global.org b/global.org index ed94837..a61e12e 100644 --- a/global.org +++ b/global.org @@ -444,8 +444,17 @@ [https://www.gnu.org/software/emacs/manual/html_node/emacs/Auto-Fill.html]) honestly I do not see where I would not want to use this. #+BEGIN_SRC emacs-lisp - (add-hook 'org-mode-hook (lambda () - (turn-on-auto-fill))) + (add-hook 'org-mode-hook 'turn-on-auto-fill) + #+END_SRC +*** Ligatures + These require a patched ~hackminus~ font + #+BEGIN_SRC emacs-lisp + (add-hook 'org-mode-hook + (lambda () + (prettify-symbols-mode 1) + (add-to-list 'prettify-symbols-alist '("**" . (? (Br . Bl) ?))) + (add-to-list 'prettify-symbols-alist '("***" . (? (Br . Bl) ? (Br . Bl) ?))) + (add-to-list 'prettify-symbols-alist '("****" . (? (Br . Bl) ? (Br . Bl) ? (Br . Bl) ?))))) #+END_SRC *** Agenda Set the canonical binding for the agenda