From cb1a0535193a43be56999c0ad0cecee6abd86082 Mon Sep 17 00:00:00 2001 From: TEC Date: Tue, 28 Jun 2022 23:00:24 +0800 Subject: [PATCH] Revise my approach to org-ol-tree --- config.org | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/config.org b/config.org index abfd1fe..4205947 100644 --- a/config.org +++ b/config.org @@ -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