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`.
This commit is contained in:
Henrik Lissner 2020-04-14 17:55:06 -04:00
parent 3ce752a227
commit 5c4f3c62a7
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 18 additions and 6 deletions

View file

@ -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]]

View file

@ -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

View file

@ -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")