From bbd547c1b735083e4aee035a435309cd8416df42 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sat, 18 Nov 2023 16:25:32 +0100 Subject: [PATCH] Hide Org drawers during visibility cycling by default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is taken from the release notes of Org 9.6, cf. https://orgmode.org/Changes.html. --- init.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.el b/init.el index 782926c..f868dc6 100644 --- a/init.el +++ b/init.el @@ -550,6 +550,7 @@ (use-package org-attach) (use-package org-id) (use-package org-goto) +(use-package org-cycle) (use-package org :pin "gnu" @@ -705,6 +706,9 @@ (add-hook 'org-mode-hook 'page-break-lines-mode) (add-hook 'org-mode-hook 'turn-on-auto-fill) + ;; Hide drawers by default when cycling items + (add-hook 'org-cycle-hook #'org-cycle-hide-drawers) + ;; Statically color links sponding to whether the file exists, but ;; this turns out to be slow on Windows; we can use `org-lint' for ;; this when necessary)