From c48c01ebabcaae06e1362632e1276fa7ed91c14c Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 28 Jul 2021 14:06:35 -0400 Subject: [PATCH] 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:. --- modules/lang/org/config.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/lang/org/config.el b/modules/lang/org/config.el index 9f0507188..a5c903ac0 100644 --- a/modules/lang/org/config.el +++ b/modules/lang/org/config.el @@ -1197,6 +1197,10 @@ compelling reason, so..." ;; Save target buffer after archiving a node. (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 ;; unintended changes can easily go unseen otherwise. (setq org-catch-invisible-edits 'smart)