summary refs log tree commit diff stats
path: root/tag-emacs
diff options
context:
space:
mode:
authorAlan Pearce2015-06-03 14:44:56 +0200
committerAlan Pearce2015-06-03 14:44:56 +0200
commite010d8654a3efc800cf8e8061778149ddbe9fcfa (patch)
tree40234d67b1513c98c31f867a2a96dd48823172a7 /tag-emacs
parent662c91f506ad3afb199eaadd213fe5eb27567c38 (diff)
downloaddotfiles-e010d8654a3efc800cf8e8061778149ddbe9fcfa.tar.lz
dotfiles-e010d8654a3efc800cf8e8061778149ddbe9fcfa.tar.zst
dotfiles-e010d8654a3efc800cf8e8061778149ddbe9fcfa.zip
Emacs: Switch window when killing REST buffer
Diffstat (limited to 'tag-emacs')
-rw-r--r--tag-emacs/emacs.d/init.el5
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