[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:
parent
e22b5a5626
commit
5a15eacc0d
1 changed files with 5 additions and 1 deletions
|
@ -616,7 +616,11 @@ After running it once remove it from `org-capture-after-finalize-hook'."
|
||||||
|
|
||||||
(defun oni-org-run-capture-in-dedicated-frame ()
|
(defun oni-org-run-capture-in-dedicated-frame ()
|
||||||
"Run `org-capture' in a 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")
|
(org-capture nil "t")
|
||||||
(delete-other-windows)
|
(delete-other-windows)
|
||||||
(setf (frame-width) 80)
|
(setf (frame-width) 80)
|
||||||
|
|
Loading…
Reference in a new issue