-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent highlighting in org mode #9950
Comments
I also had this issue at least once the last days, just saying. Not being able to reproduce. |
Looks like it's due to hl-todo being active in org-mode when it really shoudl't be. This hook needs to be changed to something that excludes org-mode. |
Thanks for identifying the cause of this issue, it was really driving me up the wall. In the short-term, I added this line to my configuration:
|
Nitpick: hooks should be named functions, so you can change or remove them again. That final nil isn't needed either. |
I've run into this issue as well when looking at org files. It ignores some of the colors I've set in org-todo-keyword-faces but they show up correctly in agendas. Adding the line @dudelson posted seems to have fixed it for me. |
I was getting inconsistent highlighting in org-mode and found issue syl20bnr#9950. A comment in the hl-todo package says that org-mode shouldn't be getting included because org defines it's own todo states, but this isn't the case for me (comment for reference: https://github.com/tarsius/hl-todo/blob/master/hl-todo.el#L69-L71) The added hook will disable hl-todo-mode on org-mode files.
I was getting inconsistent highlighting in org-mode and found issue syl20bnr#9950. A comment in the hl-todo package says that org-mode shouldn't be getting included because org defines it's own todo states, but this isn't the case for me (comment for reference: https://github.com/tarsius/hl-todo/blob/master/hl-todo.el#L69-L71) The added hook will disable hl-todo-mode on org-mode files.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid! |
Description
I'm seeing strange highlighting in my .org files. The same string (e.g.
DONE
orTODO
is getting highlighted in different ways, based on rules I can't figure out. It also seems to be stateful in some way, because I can delete a line and then re-add it, and the highlighting will change.You can see an example below of what it looks like:
Reproduction guide 🪲
(I'm so far not able to create a reliable MWE - perhaps with the info below you can provide some pointers towards one?)
Observed behaviour: 👀 💔
DONE
text shows up in 2 different styles, one bright and one pale.I ran SPC U SPC SPC what-cursor-position for both the brightly-colored and the paler version, and got the folloring output. The main difference seems to be that in the bright colored version the face is listed as
org-done
, whereas in the paler one it is(:inherit hl-todo :foreground "#afd8af")
.Bright "DONE"
Pale "DONE"
Expected behaviour: ❤️ 😄
DONE
text is highlighted the same in both cases.System Info 💻
(helm emacs-lisp org)
The text was updated successfully, but these errors were encountered: