diff options
| author | Dan Kessler <kesslerd@umich.edu> | 2022-02-22 10:49:32 -0500 |
|---|---|---|
| committer | Jonas Bernoulli <jonas@bernoul.li> | 2022-04-12 15:40:44 +0200 |
| commit | 3d1af157b466c689ae2c4d1ddc1562d613d84879 (patch) | |
| tree | 065debe938ff7caacd44a00976ffbb7dde066786 /lisp | |
| parent | 7381fa1ebf9295f2cd6af1f3f25e4adaccbff0bd (diff) | |
with-editor-sleeping-editor-filter: Store window configuration
Closes #107.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/with-editor.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/with-editor.el b/lisp/with-editor.el index 55b4241..83204f6 100644 --- a/lisp/with-editor.el +++ b/lisp/with-editor.el @@ -672,6 +672,8 @@ may not insert the text into the PROCESS's buffer. Then it calls (with-current-buffer (find-file-noselect file) (with-editor-mode 1) (setq with-editor--pid pid) + (setq with-editor-previous-winconf + (current-window-configuration)) (run-hooks 'with-editor-filter-visit-hook) (funcall (or (with-editor-server-window) #'switch-to-buffer) (current-buffer)) |
