Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Grey out Headlines Tagged with ARCHIVE #964

Discussion options

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.

You must be logged in to vote

There is no option to do that automatically, but you can add some code to your configuration:

  1. Create after/queries/org/highlights.scm file in your configuration
  2. Add this to it:
; inherits: org
(section (headline (tag_list) @_tags (#match? @_tags ":ARCHIVE:") (#set! priority "150"))) @comment
  1. 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

Comment options

There is no option to do that automatically, but you can add some code to your configuration:

  1. Create after/queries/org/highlights.scm file in your configuration
  2. Add this to it:
; inherits: org
(section (headline (tag_list) @_tags (#match? @_tags ":ARCHIVE:") (#set! priority "150"))) @comment
  1. 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.

You must be logged in to vote
1 reply
Comment options

Thank you!

Answer selected by Patitotective
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /