Prettify checkboxes in org-mode

This commit is contained in:
Tom Willemse 2018-07-17 02:22:35 -07:00
parent cb8e636045
commit 0754c6bf8f

View file

@ -29,6 +29,15 @@
(require 'org-capture) (require 'org-capture)
(require 'org-habit) (require 'org-habit)
(defun oni-org-init-setup-prettify-symbols-mode ()
"Set up prettify symbols mode for org mode."
(when (member "Ionicons" (font-family-list))
(setq-local prettify-symbols-alist
'(("[ ]" . #xf372)
("[X]" . #xf374)))
(set-face-attribute 'org-checkbox nil :family "Ionicons")
(prettify-symbols-mode)))
(setq org-default-notes-file "~/documents/gtd/inbox.org") (setq org-default-notes-file "~/documents/gtd/inbox.org")
(setq org-src-fontify-natively t) (setq org-src-fontify-natively t)
(setq org-return-follows-link t) (setq org-return-follows-link t)
@ -64,6 +73,7 @@
(add-hook 'org-mode-hook 'auto-fill-mode) (add-hook 'org-mode-hook 'auto-fill-mode)
(add-hook 'org-mode-hook 'org-bullets-mode) (add-hook 'org-mode-hook 'org-bullets-mode)
(add-hook 'org-mode-hook #'oni-org-init-setup-prettify-symbols-mode)
(provide 'oni-org-init) (provide 'oni-org-init)
;;; oni-org-init.el ends here ;;; oni-org-init.el ends here