1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-11-29 07:58:21 +00:00

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:
Eric S Fraga 2015-06-25 08:58:34 +01:00 committed by Nicolas Goaziou
parent 70bfa4027b
commit 0b0bbf6194

View File

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