Commit 32c7266e705a
Changed files (1)
dots
config
emacs
dots/config/emacs/init.el
@@ -2201,7 +2201,16 @@ Skip deletion when:
;; (add-to-list 'org-capture-templates
;; `("w" "Writing"))
(declare-function vde/window-delete-popup-frame "init")
- (add-hook 'org-capture-after-finalize-hook #'vde/window-delete-popup-frame))
+ (add-hook 'org-capture-after-finalize-hook #'vde/window-delete-popup-frame)
+
+ (defun vde/org-capture-full-frame ()
+ "Make org-capture use the full frame in popup frames.
+When capture opens in a dedicated popup frame (with `vde/window-popup-frame'
+parameter), remove all other windows so the capture buffer fills the frame."
+ (when (frame-parameter nil 'vde/window-popup-frame)
+ (delete-other-windows)))
+
+ (add-hook 'org-capture-mode-hook #'vde/org-capture-full-frame))
;; Journelly - Smart journal capture with location/weather
(use-package journelly