1
0
Fork 0

[oni-org] Specify some more properties on the capture frame

The name helps to specify in the window manager that it shouldn't be tiled, and
the width and height are just stylistic choices.
This commit is contained in:
Tom Willemse 2022-02-08 09:46:59 -08:00
parent e22b5a5626
commit 5a15eacc0d

View file

@ -616,7 +616,11 @@ After running it once remove it from `org-capture-after-finalize-hook'."
(defun oni-org-run-capture-in-dedicated-frame ()
"Run `org-capture' in a dedicated frame."
(with-selected-frame (make-frame '((minibuffer)))
(interactive)
(with-selected-frame (make-frame '((minibuffer . nil)
(name . "emacs-org-capture")
(width . 80)
(height . 24)))
(org-capture nil "t")
(delete-other-windows)
(setf (frame-width) 80)