frames-only-mode icon indicating copy to clipboard operation
frames-only-mode copied to clipboard

Opens additional frames when calling `org-capture`

Open zilti opened this issue 9 months ago • 2 comments

Hello there! I'm on Emacs 30.1. I noticed that, when calling org-capture, an additional frame gets opened, but the original frame splits into two windows to show the capture buffer there. (I tried org-roam-capture as well, which even opens two additional frames).

zilti avatar May 05 '25 11:05 zilti

Maybe something on here will help:

https://stackoverflow.com/questions/15253005/in-emacs-org-mode-how-do-i-get-org-capture-to-open-in-a-full-sized-window/76501952#76501952

(defun stag-misanthropic-capture (&rest r)
  (delete-other-windows))

(advice-add  #'org-capture-place-template :after 'stag-misanthropic-capture)

and emacsclient -e '(org-capture nil "t")' --create-frame

seem to work well for me.

thenightmail avatar Aug 07 '25 15:08 thenightmail

mm, I ended up finding the only frames mode to get in the way with similar issues and finding hacks to solve things. Instead I stopped using only frames mode and instead use this recipe assigned to an accessible keybind:

https://emacs.stackexchange.com/questions/7116/pop-a-window-into-a-frame

(defun my-turn-current-window-into-frame ()
  (interactive)
  (let ((buffer (current-buffer)))
    (unless (one-window-p)
      (delete-window))
    (display-buffer-pop-up-frame buffer nil)))

another useful function is make-frame, i'm still getting grips on things, did you find a solution that works for your setup?

thenightmail avatar Aug 15 '25 18:08 thenightmail