I would like to exclude some headings from numbering in org-num-mode.

Is there a way to achieve this?

  • @NickD Thanks. Please post this as an answer and I will accept it. Just one small question. Is there a way to set or-num-skip-tags on a per-file basis? – deshmukh Jul 17 '20 at 14:16
  • Done - added a note about file local variables and links to the relevant docs. – NickD Jul 17 '20 at 14:27

You should read the commentary in the file: "You can select what is numbered according to level, tags, COMMENT keyword, or UNNUMBERED property. You can also skip footnotes sections. See org-num-max-level, org-num-skip-tags, org-num-skip-commented, org-num-skip-unnumbered, and org-num-skip-footnotes for details."

For setting org-num-skip-tags (or most other variables) per file, one can always use file local variables. For example:

* foo

* bar                                     :unnumbered:

* baz
* Local variables                         :unnumbered:

# Local Variables:
# org-num-skip-tags: ("unnumbered")
# End:

It's a very general customization mechanism.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.