Enable ligatures in org-mode

master
Jacopo De Simoi 8 years ago
parent 1fb0b1c63b
commit 764691d31a
  1. 13
      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

Loading…
Cancel
Save