diff options
author | jao <jao@gnu.org> | 2021-03-31 04:24:10 +0100 |
---|---|---|
committer | jao <jao@gnu.org> | 2021-03-31 04:24:10 +0100 |
commit | 7fda011fdbaf0d210da820c9c8256f20c82dfab8 (patch) | |
tree | 1ad20547627a03d35cec1c77019f7f73a8faacd8 | |
parent | 0596cd8fd4321be2f99f8b3e1bd94f531a7a282b (diff) | |
download | elibs-7fda011fdbaf0d210da820c9c8256f20c82dfab8.tar.gz elibs-7fda011fdbaf0d210da820c9c8256f20c82dfab8.tar.bz2 |
fixes for switch-to-window derived custom functions
-rw-r--r-- | init.org | 10 |
1 files changed, 4 insertions, 6 deletions
@@ -1305,12 +1305,10 @@ (switch-window-threshold 3)) :config (defun jao-switch-window--then (prompt cmd) - (let ((d default-directory)) - (switch-window--then prompt - cmd - `(lambda () - (let ((default-directory ,d)) - (call-interactively ',cmd)))))) + (let ((f `(lambda () + (let ((default-directory ,default-directory)) + (call-interactively ',cmd))))) + (switch-window--then prompt f f))) (defun jao-switch-window-then-dired () (interactive) |