From 9c753fae7e7cf802ada925df798161b0f4c37855 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 13 Apr 2020 00:40:22 -0700 Subject: Use font-awesome to display org checkboxes --- oni-org/oni-org.el | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'oni-org') 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 ;; 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. -- cgit v1.2.3-54-g00ecf