aboutsummaryrefslogtreecommitdiffstats
path: root/oni-org
diff options
context:
space:
mode:
authorGravatar Tom Willemse2020-04-13 00:40:22 -0700
committerGravatar Tom Willemse2020-04-13 00:40:22 -0700
commit9c753fae7e7cf802ada925df798161b0f4c37855 (patch)
tree6def8a88c3e66e1cfbe0ed358cd6dc5b2e7c1924 /oni-org
parent95717712810ab6101b54688e4ea496c1e9df3733 (diff)
downloademacs-config-9c753fae7e7cf802ada925df798161b0f4c37855.tar.gz
emacs-config-9c753fae7e7cf802ada925df798161b0f4c37855.zip
Use font-awesome to display org checkboxes
Diffstat (limited to 'oni-org')
-rw-r--r--oni-org/oni-org.el14
1 files changed, 6 insertions, 8 deletions
diff --git a/oni-org/oni-org.el b/oni-org/oni-org.el
index 105c787..b0c3fb4 100644
--- a/oni-org/oni-org.el
+++ b/oni-org/oni-org.el
@@ -4,8 +4,8 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
-;; Version: 2020.0409.113204
-;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org-plus-contrib org-bullets org-edna diminish)
+;; Version: 2020.0413.003316
+;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org-plus-contrib org-bullets org-edna diminish all-the-icons)
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@@ -57,12 +57,10 @@ installs it will always be ~."
(defun oni-org-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-local prettify-symbols-alist
+ '(("[ ]" . ?)
+ ("[X]" . ?)))
+ (prettify-symbols-mode))
(defun oni-org-heading-has-predecessor-p ()
"Determine if the heading at point has any predecessors.