Let's do this the right way :)

This commit is contained in:
Benson Chu 2023-03-14 10:10:58 -05:00
parent c383efc3a5
commit ddb7b02d8d
2 changed files with 5 additions and 4 deletions

View file

@ -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)))))

View file

@ -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)