From e010d8654a3efc800cf8e8061778149ddbe9fcfa Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 3 Jun 2015 14:44:56 +0200 Subject: Emacs: Switch window when killing REST buffer --- tag-emacs/emacs.d/init.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tag-emacs/emacs.d') 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 -- cgit 1.4.1