fix(org): interop between org-fancy-priorities & org-export

Causing a beginning-of-buffer error.

Fix: #8280
This commit is contained in:
Henrik Lissner
2025-02-21 21:34:03 -05:00
parent 4e2449031e
commit 110b2d2841

View File

@ -21,7 +21,13 @@
(use-package! org-fancy-priorities ; priority icons
:hook (org-mode . org-fancy-priorities-mode)
:hook (org-agenda-mode . org-fancy-priorities-mode)
:config (setq org-fancy-priorities-list '("" "" "")))
:config
(setq org-fancy-priorities-list '("" "" ""))
;; HACK: Prevent org-fancy-priorities from interfering with org exporters or
;; other non-interactive Org crawlers/parsers (see #8280).
(defadvice! +org--inhibit-org-fancy-in-non-real-buffers-a (&rest _)
:before-until #'org-fancy-priorities-mode
org-inhibit-startup))
(use-package! org-appear ; better markup edit