Closed IceAsteroid closed 7 months ago
The latest commit should fix this.
Details: The buffer-invisibility-spec in the tree-buffer did not match the one in the base-buffer, so even though the asterisks had an"invisible" property, it was not being honored.
Also, just for reference, the variable org-hide-leading-stars
only affects the color of the leading stars. That is, it tries to make the stars match the background, so that you don't see them. It doesn't remove them from the buffer. What makes the stars actually disappear --- that is, what makes them "invisible," in the elisp sense --- is the variable org-superstar-remove-leading-stars
. The more you know... 💫
Yes, I have that variable set for org-superstart
(use-package org-superstar
:ensure t
:hook
(org-mode . (lambda () (org-superstar-mode 1)))
:init
;; This is usually the default, but keep in mind it must be nil
(setq org-hide-leading-stars nil)
;; This line is necessary.
(setq org-superstar-leading-bullet ?\s)
;; If you use Org Indent you also need to add this, otherwise the
;; above has no effect while Indent is enabled.
(setq org-indent-mode-turns-on-hiding-stars nil)
;;(setq org-superstar-leading-bullet 11044)
(setq org-superstar-headline-bullets-list '(19968 20108 19977 22235 20116 20845 19971 20843 20061 8553 8554 8555))
(setq org-superstar-remove-leading-stars t))
The newest commit has fixed this. Beautiful, thank you!
I've set indicators such as 一, 二, 三, 四 for each heading level via
org-superstar
, so there's no need to either display leading stars nor to be indented to waste more space especially in theorg-side-tree
buffer.But the
org-side-tree
buffer cannot display properly withorg-superstar
, it will look like follows:If I further set
(add-hook 'org-side-tree-mode-hook (lambda () (setq-local org-hide-leading-stars t)))
, it still doesn't work, but the variable appears to be set when I run C-h v(describe-variable) in theorg-side-tree
buffer.Only if I set
(setq org-hide-leading-stars t))
in the global scope of my init file, it will then look as follows:My guess this is caused by that
org-side-tree
isn't using org-mode, but instead outline-mode to fetch org-headings, which is withoutorg-superstar-mode
enabled.However, I can't enable
org-superstar-mode
specifically fororg-side-tree
's buffer anyway, as it complaintsOrg mode is not enabled in this buffer. [2 times]
But, if I enable org-mode for org-side-tree, this time the color of each heading vanishes to be plain as follows:
Any ideas?