From 33e0fcb33e7bca6ac69605fc8264a4edb413d75a Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sat, 16 May 2026 10:44:14 -0500 Subject: 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. --- modules/org-config.el | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'modules/org-config.el') diff --git a/modules/org-config.el b/modules/org-config.el index 852dfd37..20160d7d 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 -- cgit v1.2.3