1
0
Fork 0

Don't load icons if the display can't handle them

This commit is contained in:
Tom Willemse 2021-01-06 20:19:53 -08:00
parent 391a3660a4
commit f4fe076d62

View file

@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org> ;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local ;; Keywords: local
;; Version: 2021.0106.000520 ;; Version: 2021.0106.201747
;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org-plus-contrib org-bullets org-edna diminish all-the-icons org-journal org-roam) ;; Package-Requires: (oni-yasnippet oni-alert oni-hydra org-plus-contrib org-bullets org-edna diminish all-the-icons org-journal org-roam)
;; This program is free software; you can redistribute it and/or modify ;; This program is free software; you can redistribute it and/or modify
@ -310,7 +310,8 @@ also move point to the start of the heading."
(defun oni-org-initialize-agenda-category-icons () (defun oni-org-initialize-agenda-category-icons ()
"Set org-agenda-category-icon-alist if it hasnt already been set." "Set org-agenda-category-icon-alist if it hasnt already been set."
(when (null org-agenda-category-icon-alist) (when (and (display-graphic-p)
(null org-agenda-category-icon-alist))
(oni-org-set-agenda-category-icons))) (oni-org-set-agenda-category-icons)))
(defun oni-org-set-agenda-category-icons () (defun oni-org-set-agenda-category-icons ()