nit(org): update outdated comment

Amend: b0e16dc243
This commit is contained in:
Tim Ruffing 2024-07-09 14:55:51 +02:00 committed by Henrik Lissner
parent 16b243733b
commit b4b1b48e26

View file

@ -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)