Skip to content

Instantly share code, notes, and snippets.

@anselm-helbig
Created July 10, 2014 13:19
Show Gist options
  • Save anselm-helbig/1275899450f6589065e0 to your computer and use it in GitHub Desktop.
Save anselm-helbig/1275899450f6589065e0 to your computer and use it in GitHub Desktop.
Dired hack
(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