From 18b75bd03ee11699fdcbe06964134ebbc7ff0e1e Mon Sep 17 00:00:00 2001 From: Leo Vivier Date: Tue, 11 May 2021 16:07:12 +0200 Subject: [PATCH] (feat): Hide drawer content when capturing --- org-roam-capture.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/org-roam-capture.el b/org-roam-capture.el index 809fefe..e860b3b 100644 --- a/org-roam-capture.el +++ b/org-roam-capture.el @@ -760,7 +760,9 @@ TEMPLATES is a list of org-roam templates." (when (and (not keys) (= (length org-capture-templates) 1)) (setq keys (caar org-capture-templates))) - (org-capture goto keys))) + (org-capture goto keys) + (unless goto + (org-cycle-hide-drawers 'all)))) ;;;###autoload (defun org-roam-capture (&optional goto keys)