all repos — nixfiles @ e010d8654a3efc800cf8e8061778149ddbe9fcfa

System and user configuration, managed by nix and home-manager

Emacs: Switch window when killing REST buffer
Alan Pearce alan.pearce@spotcap.com
Wed, 03 Jun 2015 14:44:56 +0200
commit

e010d8654a3efc800cf8e8061778149ddbe9fcfa

parent

662c91f506ad3afb199eaadd213fe5eb27567c38

1 files changed, 4 insertions(+), 1 deletions(-)

jump to
M tag-emacs/emacs.d/init.eltag-emacs/emacs.d/init.el
@@ -422,7 +422,10 @@ (if (equal arg '(4))       (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