diff --git a/config-ext.org b/config-ext.org index e54e8fe..8dce2bc 100644 --- a/config-ext.org +++ b/config-ext.org @@ -86,7 +86,7 @@ (side . right) (select . t) (slot . 7) - (window-width . 80) + (window-width . 85) (window-parameters . ((no-delete-other-windows . t) (dedicated . t))))) diff --git a/lisp/org-config/my-org-capture-shouldnt-mess-windows.el b/lisp/org-config/my-org-capture-shouldnt-mess-windows.el index b4c8347..07514e7 100644 --- a/lisp/org-config/my-org-capture-shouldnt-mess-windows.el +++ b/lisp/org-config/my-org-capture-shouldnt-mess-windows.el @@ -43,12 +43,13 @@ :around #'my/org-capture-shouldnt-mess-windows) -(defun my/org-capture-finalize-shouldnt-mess-windows (fun &rest args) +(defun my/org-capture-finalize-shouldnt-mess-windows (&rest args) (save-window-excursion - (apply fun args))) + (delete-window) + (org-capture-put :return-to-wconf (current-window-configuration)))) (advice-add #'org-capture-finalize - :around + :before #'my/org-capture-finalize-shouldnt-mess-windows) (defun my/org-todo-side-window-hack (fun &rest args)