Created
August 28, 2013 14:35
-
-
Save tam17aki/6366706 to your computer and use it in GitHub Desktop.
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 ibuffer-ido-find-file () | |
"Like `ido-find-file', but default to the directory of the buffer at point." | |
(interactive) | |
(let ((default-directory | |
(let ((buf (ibuffer-current-buffer))) | |
(if (buffer-live-p buf) | |
(with-current-buffer buf | |
default-directory) | |
default-directory)))) | |
(ido-find-file-in-dir default-directory))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment