Comments (7)
Hi, quick update: I'm pretty sure I found the culprit, but I need to give a little context.
Vanilla Org ships with a variable called org-hide-leading-stars
. If non-nil, it hides the leading stars in a very primitive fashion, that is by setting their color to the background color (or whatever the face org-hide
is set to). org-superstar honors that value, and consequently has a "hands-off" approach when it is enabled. This is done to keep Superstar more orthogonal to Org itself.
Now, you may be wondering why all that matters when you explicitly turned it off? That is because org-indent
overrides the value of org-hide-leading-stars
while active and sets it to t. Consequently it basically tells Superstar that it wants to take over hiding the stars. This is why you get that strange effect. This can be turned off setting org-indent-mode-turns-on-hiding-stars
to nil, adding the following to your config should do:
(setq org-indent-mode-turns-on-hiding-stars nil)
So what remains now is for me to figure out how and where to document this.
from org-superstar-mode.
Hi @iburunat, thanks for the working example! I think I have an idea what the root cause for this is (likely it relates to org-indent messing with the leading starts on its own, overriding superstar's behavior). I'll tinker with this a bit, though I may be slow to respond this month. I'll keep you updated!
from org-superstar-mode.
Hi @iburunat! Thanks for bringing this to my attention. It would be a great help if you could provide a minimum working example config of Org (that is, a small excerpt from your setup including org-indent) that reproduces this problem with default Emacs (meaning Emacs run with emacs -Q
). If there's any way I can help with that, be sure to let me know!
from org-superstar-mode.
@integral-dw, Sure thing! Thanks for looking into this.
First, start emacs with emacs -Q
and then run this snippet below on the *scratch*
buffer:
(require 'package)
(package-initialize t)
(add-to-list 'load-path "~/.emacs.d/elpa/org-superstar-20200818.2257/")
(require 'org-superstar)
(add-hook 'org-mode-hook (lambda () (org-superstar-mode 1)))
(setq org-hide-leading-stars nil)
(setq org-superstar-leading-bullet ?\s)
(global-hl-line-mode 1)
(custom-set-faces
'(hl-line ((t (:background "dark magenta" :foreground "white")))))
Now, create a simple orgmode
document with two-level headings and add #+STARTUP: indent
and run it with C-c C-c
, you will get the behaviour I get. To compare, you can run #+STARTUP: noindent
and see how the preceeding stars are hidden when the cursor is on that same line.
Hope this works for you and you can reproduce the bug,
Thanks in advance!
from org-superstar-mode.
I'm having this issue as well.
from org-superstar-mode.
@integral-dw Sounds good. There is no rush, just thought it was worth to mention this issue. Hope there is a "cure" for it in the future :) Thanks a mil.
from org-superstar-mode.
It works perfectly! So beautiful... thanks thanks thanks! :))
from org-superstar-mode.
Related Issues (20)
- org-superstar-item face is only applied to star-items HOT 1
- Disable heading superstar HOT 1
- allow emojify-mode to overrule org-bullets
- [feature request] hide ALL stars/bullets for some heading-levels HOT 2
- src block output not fontified with org-superstar HOT 1
- change item bullet by its level, not its bullet char
- Unicode icons not rendering the same when in daemon mode HOT 3
- org-superstar is automatically deactivated after file saving HOT 2
- What is the configuration for the appearance of the picture in the readme? HOT 1
- Readme not correct. HOT 1
- Wrong bullet rendering with Iosevka HOT 3
- custom to apply text-property to bullets
- (setq org-startup-with-inline-images t) breaks org-superstar (when opening a new document) HOT 1
- Level 3 and 6 Headings' icon look off HOT 1
- Ctrl-a Doesn't Work Right
- Setting org-superstar-remove-leading-stars to 't' corrupts headings HOT 1
- Item bullet face isn't applied to ordered lists (lists like 1. 2. 3.)
- Is there a way to change the size of the bullets?
- "bug#70914: 29.3; Crashes often on Windows" -- timing related crashes due to org-superstar and org-fancy-priorities on windows? HOT 1
- elements + don't render properly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from org-superstar-mode.