feat(org): set org-num-face & org-num-skip-tags

+ Perhaps a dedicated face would be better, but org-special-keyword will
  do for now.
+ Don't number trees tagged :noexport: or :nonum:.
This commit is contained in:
Henrik Lissner 2021-07-28 14:06:35 -04:00
parent a3e01fb4fe
commit c48c01ebab

View file

@ -1197,6 +1197,10 @@ compelling reason, so..."
;; Save target buffer after archiving a node. ;; Save target buffer after archiving a node.
(setq org-archive-subtree-save-file-p t) (setq org-archive-subtree-save-file-p t)
;; Don't number headings with these tags
(setq org-num-face '(:inherit org-special-keyword :underline nil :weight bold)
org-num-skip-tags '("noexport" "nonum"))
;; Prevent modifications made in invisible sections of an org document, as ;; Prevent modifications made in invisible sections of an org document, as
;; unintended changes can easily go unseen otherwise. ;; unintended changes can easily go unseen otherwise.
(setq org-catch-invisible-edits 'smart) (setq org-catch-invisible-edits 'smart)