diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-16 10:44:14 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-16 10:44:14 -0500 |
| commit | 33e0fcb33e7bca6ac69605fc8264a4edb413d75a (patch) | |
| tree | b29e20c30ea48510b50514718d194e8707f97dde /modules/org-config.el | |
| parent | faf716de7ad4b69486e42de591588d8b750bbdb9 (diff) | |
| download | dotemacs-33e0fcb33e7bca6ac69605fc8264a4edb413d75a.tar.gz dotemacs-33e0fcb33e7bca6ac69605fc8264a4edb413d75a.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.
Diffstat (limited to 'modules/org-config.el')
| -rw-r--r-- | modules/org-config.el | 11 |
1 files changed, 11 insertions, 0 deletions
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 |
