Created
July 10, 2014 13:19
-
-
Save anselm-helbig/1275899450f6589065e0 to your computer and use it in GitHub Desktop.
Dired hack
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 avg-dired-enter-or-find-file-other-window () | |
(interactive) | |
(if (file-directory-p (dired-get-file-for-visit)) | |
(dired-view-file) | |
(dired-find-file-other-window))) | |
(define-key dired-mode-map (kbd "l") #'avg-dired-enter-or-find-file-other-window) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment