Revise my approach to org-ol-tree

This commit is contained in:
TEC 2022-06-28 23:00:24 +08:00
parent f45ea8ed16
commit cb1a053519
Signed by: tec
GPG Key ID: 779591AFDB81F06C
1 changed files with 6 additions and 3 deletions

View File

@ -5488,9 +5488,12 @@ recognising the pgtk window system]].
(use-package! org-ol-tree
:commands org-ol-tree
:config
(defadvice! org-ol-tree-system--graphical-frame-p--pgtk ()
:override #'org-ol-tree-system--graphical-frame-p
(memq window-system '(pgtk x w32 ns))))
(setq org-ol-tree-ui-icon-set
(if (and (display-graphic-p)
(fboundp 'all-the-icons-material))
'all-the-icons
'unicode))
(org-ol-tree-ui--update-icon-set))
(map! :map org-mode-map
:after org