refactor!(org): +pretty: use org-modern instead

BREAKING CHANGE: This changes the packages that +pretty depends on;
removing org-superstar and org-fancy-priorities, and replacing them with
org-modern. The user doesn't need to do anything but remove any
now-defunct configuration for org-superstar and org-fancy-priorities
from their config.

This was done to simplify our config, lighten our maintenance burden,
and rely on a more reliable (and still-maintained) package.

Fix: #6434
This commit is contained in:
Henrik Lissner
2025-04-03 17:35:26 -04:00
parent 318e630037
commit b1e6dec47a
2 changed files with 9 additions and 30 deletions

View File

@ -4,31 +4,11 @@
(setq org-highlight-latex-and-related '(native script entities))) (setq org-highlight-latex-and-related '(native script entities)))
(use-package! org-superstar ; "prettier" bullets (use-package! org-appear
:hook (org-mode . org-superstar-mode)
:config
;; Make leading stars truly invisible, by rendering them as spaces!
(setq org-superstar-leading-bullet ?\s
org-superstar-leading-fallback ?\s
org-hide-leading-stars nil
org-superstar-todo-bullet-alist
'(("TODO" . 9744)
("[ ]" . 9744)
("DONE" . 9745)
("[X]" . 9745))))
(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 '("" "" ""))
;; 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
:hook (org-mode . org-appear-mode)) :hook (org-mode . org-appear-mode))
(use-package! org-modern
:hook (org-mode . org-modern-mode)
:hook (org-agenda-finalize . org-modern-mode)
:hook (org-modern-mode . +org-pretty-mode))

View File

@ -85,9 +85,8 @@
(when (modulep! +pomodoro) (when (modulep! +pomodoro)
(package! org-pomodoro :pin "3f5bcfb80d61556d35fc29e5ddb09750df962cc6")) (package! org-pomodoro :pin "3f5bcfb80d61556d35fc29e5ddb09750df962cc6"))
(when (modulep! +pretty) (when (modulep! +pretty)
(package! org-appear :pin "32ee50f8fdfa449bbc235617549c1bccb503cb09") (package! org-modern :pin "3cc432dc99f262579d1cc464e7d6d5b9fe77083a")
(package! org-superstar :pin "54c81c27dde2a6dc461bb064e79a8b2089093a2e") (package! org-appear :pin "32ee50f8fdfa449bbc235617549c1bccb503cb09"))
(package! org-fancy-priorities :pin "7f677c6c14ecf05eab8e0efbfe7f1b00ae68eb1d"))
(when (modulep! +present) (when (modulep! +present)
(package! centered-window (package! centered-window
:recipe (:host github :repo "anler/centered-window-mode") :recipe (:host github :repo "anler/centered-window-mode")