Created
August 13, 2012 05:48
-
-
Save etscrivner/3337235 to your computer and use it in GitHub Desktop.
Jump to a file in a new buffer
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 jump-to-file (file) | |
"""Opens the given file in the current window if it exists.""" | |
(when (file-exists-p file) | |
(find-file file))) | |
(defun jump-to-file-other-window (file) | |
"""Opens the given file in the window next to the current window""" | |
(when (file-exists-p file) | |
(find-file-other-window file))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment