mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-02-16 08:14:15 +00:00
That's the correct thing to do
This commit is contained in:
parent
8bab7d495e
commit
ff760faa89
1 changed files with 1 additions and 2 deletions
|
|
@ -59,10 +59,9 @@
|
||||||
|
|
||||||
(defun my/org-capture-finalize-shouldnt-mess-windows (orig &rest args)
|
(defun my/org-capture-finalize-shouldnt-mess-windows (orig &rest args)
|
||||||
(cl-letf* ((orig-set-window-configuration (symbol-function 'set-window-configuration))
|
(cl-letf* ((orig-set-window-configuration (symbol-function 'set-window-configuration))
|
||||||
|
|
||||||
((symbol-function 'set-window-configuration)
|
((symbol-function 'set-window-configuration)
|
||||||
#'(lambda (&rest args)
|
#'(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-set-window-configuration args)))))
|
||||||
(apply orig args)))
|
(apply orig args)))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue