diff options
author | Alan Pearce | 2015-06-03 14:44:56 +0200 |
---|---|---|
committer | Alan Pearce | 2015-06-03 14:44:56 +0200 |
commit | e010d8654a3efc800cf8e8061778149ddbe9fcfa (patch) | |
tree | 40234d67b1513c98c31f867a2a96dd48823172a7 /tag-emacs | |
parent | 662c91f506ad3afb199eaadd213fe5eb27567c38 (diff) | |
download | nixfiles-e010d8654a3efc800cf8e8061778149ddbe9fcfa.tar.lz nixfiles-e010d8654a3efc800cf8e8061778149ddbe9fcfa.tar.zst nixfiles-e010d8654a3efc800cf8e8061778149ddbe9fcfa.zip |
Emacs: Switch window when killing REST buffer
Diffstat (limited to 'tag-emacs')
-rw-r--r-- | tag-emacs/emacs.d/init.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el index 6a6b1567..36c08506 100644 --- a/tag-emacs/emacs.d/init.el +++ b/tag-emacs/emacs.d/init.el @@ -422,7 +422,10 @@ (delete-current-buffer-file) (if server-buffer-clients (server-edit) - (kill-this-buffer)))) + (let ((buf (buffer-name))) + (when (equalp buf "*HTTP Response*") + (other-window 1)) + (kill-buffer buf))))) (req-package ws-butler :if window-system |