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

The accepted answer doesn't seem to work for me in emacs 24. The only solution I was able to find involves using emacs-noflet and (thanks Alex Vorobiev) in your emacs file:

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

and bind make-capture-frame to a shortcut.


You can add (add-hook 'org-capture-mode-hook 'delete-other-windows) or (add-hook 'org-capture-mode-hook 'make-frame) to your .emacs. (To test, you can eval these with M-:). The first should delete the other windows, the second opens the window in a new frame. However these work after you select the capture template.

Tags:

Emacs

Org Mode