In org-mode Emacs, how can I get org-capture to open in a full-size window?

In Emacs org-mode, how do I get org-capture to open in a full-size window and not split the window first?

+5
source share
2 answers

You can add (add-hook 'org-capture-mode-hook 'delete-other-windows)or (add-hook 'org-capture-mode-hook 'make-frame)to .emacs. (To check, you can rate them with M-:). The first is to remove other windows, the second is a window in a new frame. However, they work after selecting a capture template.

+5
source

, , emacs 24. , , emacs-noflet ( ) emacs:

 (defun make-capture-frame ()
     "Create a new frame and run org-capture."
     (interactive)
     (make-frame '((name . "capture")))
     (select-frame-by-name "capture")
     (delete-other-windows)
     (noflet ((switch-to-buffer-other-window (buf) (switch-to-buffer buf)))
       (org-capture)))

make-capture-frame .

+2

All Articles