From ff760faa89e59b364252b46d2e5d0766beb249ff Mon Sep 17 00:00:00 2001 From: Benson Chu Date: Sun, 17 Aug 2025 09:07:07 -0500 Subject: [PATCH] That's the correct thing to do --- lisp/org-config/my-org-capture-shouldnt-mess-windows.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 7b112a3..672b720 100644 --- a/lisp/org-config/my-org-capture-shouldnt-mess-windows.el +++ b/lisp/org-config/my-org-capture-shouldnt-mess-windows.el @@ -59,10 +59,9 @@ (defun my/org-capture-finalize-shouldnt-mess-windows (orig &rest args) (cl-letf* ((orig-set-window-configuration (symbol-function 'set-window-configuration)) - ((symbol-function 'set-window-configuration) #'(lambda (&rest args) - (unless (equal (car args) (org-capture-get :return-to-wconf 'local)) + (unless (equal (car args) (org-capture-get :return-to-wconf)) (apply orig-set-window-configuration args))))) (apply orig args)))