Skip to content

Instantly share code, notes, and snippets.

@davazp
Created August 26, 2015 17:31
Show Gist options
  • Save davazp/da34f416ed17471c96cc to your computer and use it in GitHub Desktop.
Save davazp/da34f416ed17471c96cc to your computer and use it in GitHub Desktop.
switch-to-other-buffer
(defun switch-to-other-buffer ()
"Switch to the most recently visited buffer. Calling this
command repeatly will switch between the last two most recent
buffers."
(interactive)
(switch-to-buffer (other-buffer)))
(define-key global-map (kbd "C-;") 'switch-to-other-buffer)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment