Skip to content

Instantly share code, notes, and snippets.

@signalpillar
Created March 27, 2013 09:34
Show Gist options
  • Select an option

  • Save signalpillar/5252991 to your computer and use it in GitHub Desktop.

Select an option

Save signalpillar/5252991 to your computer and use it in GitHub Desktop.
;; function to kill buffer and close other window without switching to it
(defun kill-other-buffer-and-window ()
(interactive)
(kill-buffer (other-buffer))
(delete-other-windows))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment