Last active
December 22, 2015 21:19
-
-
Save clvrobj/6532782 to your computer and use it in GitHub Desktop.
This file contains hidden or 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-same-buffer-other-window() | |
"Open same buffer and switch to the other window." | |
(interactive) | |
(let ((cur-buf (current-buffer))) | |
(other-window 1) | |
(switch-to-buffer cur-buf))) | |
(global-set-key "\C-x\C-o" 'switch-same-buffer-other-window) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment