Skip to content

Grey out Headlines Tagged with ARCHIVE #964

Discussion options

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

You must be logged in to vote
1 reply
@Patitotective
Comment options

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
2 participants