Don't load icons if the display can't handle them
This commit is contained in:
parent
391a3660a4
commit
f4fe076d62
1 changed files with 3 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||
;; 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)
|
||||
|
||||
;; 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 ()
|
||||
"Set ‘org-agenda-category-icon-alist’ if it hasn’t 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)))
|
||||
|
||||
(defun oni-org-set-agenda-category-icons ()
|
||||
|
|
Loading…
Reference in a new issue