forked from mirrors/org-mode
org-capture: Place capture buffer in other window
* org-capture.el (org-capture-fill-template): The capture template buffer will be displayed in another window, keeping original window visible if appropriate.
This commit is contained in:
parent
70bfa4027b
commit
0b0bbf6194
|
@ -1590,8 +1590,7 @@ The template may still contain \"%?\" for cursor positioning."
|
|||
(unless template (setq template "") (message "No template") (ding)
|
||||
(sit-for 1))
|
||||
(save-window-excursion
|
||||
(delete-other-windows)
|
||||
(org-pop-to-buffer-same-window (get-buffer-create "*Capture*"))
|
||||
(org-switch-to-buffer-other-window (get-buffer-create "*Capture*"))
|
||||
(erase-buffer)
|
||||
(insert template)
|
||||
(goto-char (point-min))
|
||||
|
|
Loading…
Reference in New Issue