From 5c4f3c62a7bba51798d3e8ee17c0f548bccd86c3 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 14 Apr 2020 17:55:06 -0400 Subject: [PATCH] Replace org-bullets w/ org-superstar org-superstar is a little faster, better written and still maintained. It also has a few more features which I've made opt-in because they are relatively expensive in larger buffers. Folks that don't care for the differences just have to replace `org-bullets-bullet-list` in their configs with `org-superstar-headline-bullets-list`. --- modules/lang/org/README.org | 2 +- modules/lang/org/config.el | 18 ++++++++++++++++-- modules/lang/org/packages.el | 4 +--- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/modules/lang/org/README.org b/modules/lang/org/README.org index 038630be3..7918df1e7 100644 --- a/modules/lang/org/README.org +++ b/modules/lang/org/README.org @@ -73,7 +73,7 @@ https://www.mfoot.com/blog/2015/11/22/literate-emacs-configuration-with-org-mode + [[https://github.com/hniksic/emacs-htmlize][htmlize]] + [[https://github.com/astahlman/ob-async][ob-async]] + [[https://github.com/alphapapa/org-bookmark-heading][org-bookmark-heading]] -+ [[https://github.com/sabof/org-bullets][org-bullets]] ++ [[https://github.com/integral-dw/org-superstar-mode][org-superstar]] + [[https://github.com/rexim/org-cliplink][org-cliplink]] + [[https://github.com/magit/orgit][orgit]] + [[https://orgmode.org/][org-plus-contrib]] diff --git a/modules/lang/org/config.el b/modules/lang/org/config.el index 9cb4a0ad3..5e36eb63b 100644 --- a/modules/lang/org/config.el +++ b/modules/lang/org/config.el @@ -759,8 +759,22 @@ compelling reason, so..." (set-marker p nil))))) -(use-package! org-bullets ; "prettier" bullets - :hook (org-mode . org-bullets-mode)) +(use-package! org-superstar ; "prettier" bullets + :hook (org-mode . org-superstar-mode) + :config + ;; Make leading stars truly invisible, by rendering them as spaces! + (setq org-superstar-leading-bullet ?\s + org-hide-leading-stars nil) + ;; Don't do anything special for item bullets or TODOs by default; these slow + ;; down larger org buffers. + (setq org-superstar-prettify-item-bullets nil + org-superstar-special-todo-items nil + ;; ...but configure it in case the user wants it later + org-superstar-todo-bullet-alist + '(("TODO" . 9744) + ("[ ]" . 9744) + ("DONE" . 9745) + ("[X]" . 9745)))) (use-package! org-crypt ; built-in diff --git a/modules/lang/org/packages.el b/modules/lang/org/packages.el index db8fc38f2..47cfe6f42 100644 --- a/modules/lang/org/packages.el +++ b/modules/lang/org/packages.el @@ -34,9 +34,7 @@ (package! avy) (package! htmlize :pin "86f22f211e") -(package! org-bullets - :recipe (:host github :repo "Kaligule/org-bullets") - :pin "8b4f0aab6d") +(package! org-superstar :pin "4897c333a8") (package! org-yt :recipe (:host github :repo "TobiasZawada/org-yt") :pin "40cc1ac76d")