diff --git a/modules/lang/org/config.el b/modules/lang/org/config.el index 1571110c1..8e2fe5550 100644 --- a/modules/lang/org/config.el +++ b/modules/lang/org/config.el @@ -780,9 +780,9 @@ mutating hooks on exported output, like formatters." (defadvice! +org--restart-mode-before-indirect-buffer-a (&optional buffer _) "Restart `org-mode' in buffers in which the mode has been deferred (see `+org-defer-mode-in-agenda-buffers-h') before they become the base buffer for an -indirect buffer. This ensures that the buffer is fully functional not only when -the *user* visits it, but also when some code interacts with it via an indirect -buffer as done, e.g., by `org-capture'." +indirect org-cpature buffer. This ensures that the buffer is fully functional +not only when the *user* visits it, but also when org-capture interacts with it +via an indirect buffer." :before #'org-capture-get-indirect-buffer (with-current-buffer (or buffer (current-buffer)) (when (memq #'+org--restart-mode-h doom-switch-buffer-hook)