Created
August 26, 2015 17:31
-
-
Save davazp/da34f416ed17471c96cc to your computer and use it in GitHub Desktop.
switch-to-other-buffer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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