parent
16b243733b
commit
b4b1b48e26
1 changed files with 3 additions and 3 deletions
|
@ -780,9 +780,9 @@ mutating hooks on exported output, like formatters."
|
||||||
(defadvice! +org--restart-mode-before-indirect-buffer-a (&optional buffer _)
|
(defadvice! +org--restart-mode-before-indirect-buffer-a (&optional buffer _)
|
||||||
"Restart `org-mode' in buffers in which the mode has been deferred (see
|
"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
|
`+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
|
indirect org-cpature buffer. This ensures that the buffer is fully functional
|
||||||
the *user* visits it, but also when some code interacts with it via an indirect
|
not only when the *user* visits it, but also when org-capture interacts with it
|
||||||
buffer as done, e.g., by `org-capture'."
|
via an indirect buffer."
|
||||||
:before #'org-capture-get-indirect-buffer
|
:before #'org-capture-get-indirect-buffer
|
||||||
(with-current-buffer (or buffer (current-buffer))
|
(with-current-buffer (or buffer (current-buffer))
|
||||||
(when (memq #'+org--restart-mode-h doom-switch-buffer-hook)
|
(when (memq #'+org--restart-mode-h doom-switch-buffer-hook)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue