aboutsummaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
authorGravatar Tom Willemse2018-07-17 02:22:35 -0700
committerGravatar Tom Willemse2018-07-17 02:22:35 -0700
commit0754c6bf8fbe1a67b1974ec4aecb79e6a0946229 (patch)
treeef76b98d18cb2fd19a390e3270b344d117f7e4d4 /emacs
parentcb8e636045875f076d6198f9e2d3ed626d0d7801 (diff)
downloadnew-dotfiles-0754c6bf8fbe1a67b1974ec4aecb79e6a0946229.tar.gz
new-dotfiles-0754c6bf8fbe1a67b1974ec4aecb79e6a0946229.zip
Prettify checkboxes in org-mode
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/init/oni-org-init.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init/oni-org-init.el b/emacs/.emacs.d/init/oni-org-init.el
index d1bbdfb..0c3fcc5 100644
--- a/emacs/.emacs.d/init/oni-org-init.el
+++ b/emacs/.emacs.d/init/oni-org-init.el
@@ -29,6 +29,15 @@
(require 'org-capture)
(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-src-fontify-natively t)
(setq org-return-follows-link t)
@@ -64,6 +73,7 @@
(add-hook 'org-mode-hook 'auto-fill-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)
;;; oni-org-init.el ends here