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/emacs.d | |
parent | 662c91f506ad3afb199eaadd213fe5eb27567c38 (diff) | |
download | dotfiles-e010d8654a3efc800cf8e8061778149ddbe9fcfa.tar.lz dotfiles-e010d8654a3efc800cf8e8061778149ddbe9fcfa.tar.zst dotfiles-e010d8654a3efc800cf8e8061778149ddbe9fcfa.zip |
Emacs: Switch window when killing REST buffer
Diffstat (limited to 'tag-emacs/emacs.d')
-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 6a6b156..36c0850 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 |