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)
downloadnixfiles-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.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 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