Commit 32c7266e705a

Vincent Demeester <vincent@sbr.pm>
2026-03-25 11:37:26
feat(emacs): full-frame org-capture in popup
Added hook to delete-other-windows when org-capture opens in a dedicated popup frame, so the capture buffer fills the entire frame instead of splitting.
1 parent ad401b0
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