aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-16 10:44:14 -0500
committerCraig Jennings <c@cjennings.net>2026-05-16 10:44:14 -0500
commit82958e81186245b79c768bad0260a0cc62724e67 (patch)
tree40fae41e1d779bc7c835c0ed8b7c9e963a5491b5
parented74026a1b5a14343a14ff05aafbfd7c6f6967b7 (diff)
downloaddotemacs-82958e81186245b79c768bad0260a0cc62724e67.tar.gz
dotemacs-82958e81186245b79c768bad0260a0cc62724e67.zip
feat(org-config): hide :PROPERTIES: drawers via org-tidy
Adds an org-tidy use-package block hooked into org-mode and sets org-tidy-properties-style to 'inline so each :PROPERTIES: drawer collapses to a small marker in the heading line. The drawer stays editable through TAB cycling or via M-x org-tidy-mode toggle. Also sets org-cycle-hide-drawers to 'all in cj/org-general-settings so drawers fold whenever their parent heading folds -- the native companion to org-tidy's overlay-based hiding.
-rw-r--r--modules/org-config.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/modules/org-config.el b/modules/org-config.el
index 852dfd37c..20160d7d2 100644
--- a/modules/org-config.el
+++ b/modules/org-config.el
@@ -24,6 +24,7 @@
;; GENERAL
(setq org-startup-folded t) ;; all org files should start in the folded state
(setq org-cycle-open-archived-trees t) ;; re-enable opening headings with archive tags with TAB
+ (setq org-cycle-hide-drawers 'all) ;; collapse :PROPERTIES: drawers when a heading folds
(setopt org-outline-path-complete-in-steps nil)
(setq org-return-follows-link t) ;; hit return to follow an org-link
(setq org-list-allow-alphabetical t) ;; allow alpha ordered lists (i.e., a), A), a., etc.)
@@ -267,6 +268,16 @@ especially in tables with long URLs)."
(org-appear-mode 1)
(message "org-appear enabled (links/emphasis show when editing)")))
+;; --------------------------------- Org-Tidy ----------------------------------
+
+;; Hide :PROPERTIES: drawers behind a small inline marker so headings stay
+;; clean. Drawers remain editable -- cycle through them with TAB or toggle
+;; the package off with M-x org-tidy-mode.
+(use-package org-tidy
+ :hook (org-mode . org-tidy-mode)
+ :custom
+ (org-tidy-properties-style 'inline)) ;; 'inline | 'fringe | 'invisible
+
;; ------------------------------- Org-Checklist -------------------------------
;; needed for org-habits to reset checklists once task is complete