Skip to content

Commit

Permalink
Replace org-bullets w/ org-superstar
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
hlissner committed Apr 14, 2020
1 parent 3ce752a commit 5c4f3c6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
2 changes: 1 addition & 1 deletion modules/lang/org/README.org
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand Down
18 changes: 16 additions & 2 deletions modules/lang/org/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions modules/lang/org/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 5c4f3c6

Please sign in to comment.