-
-
Notifications
You must be signed in to change notification settings - Fork 167
Grey out Headlines Tagged with ARCHIVE #964
-
I was wondering if there was a way to grey out (don't color) headlines containing the tag ARCHIVE
.
I want this since some headlines are not necessary but I don't want to send them to the archive file since I might need them sometime, but I also don't want to have the visual clutter of the colored headline.
Beta Was this translation helpful? Give feedback.
All reactions
There is no option to do that automatically, but you can add some code to your configuration:
- Create
after/queries/org/highlights.scm
file in your configuration - Add this to it:
; inherits: org (section (headline (tag_list) @_tags (#match? @_tags ":ARCHIVE:") (#set! priority "150"))) @comment
- Restart Neovim
With this, your archived headlines should be highlighted in the same way as comments. You can change the last @comment
part to any hl group you desire.
Replies: 1 comment 1 reply
-
There is no option to do that automatically, but you can add some code to your configuration:
- Create
after/queries/org/highlights.scm
file in your configuration - Add this to it:
; inherits: org (section (headline (tag_list) @_tags (#match? @_tags ":ARCHIVE:") (#set! priority "150"))) @comment
- Restart Neovim
With this, your archived headlines should be highlighted in the same way as comments. You can change the last @comment
part to any hl group you desire.
Beta Was this translation helpful? Give feedback.
All reactions
-
❤️ 2
-
Thank you!
Beta Was this translation helpful? Give feedback.