Skip to content

Instantly share code, notes, and snippets.

@SjB
Created November 6, 2016 14:54
Show Gist options
  • Save SjB/a338a5486809001c82372673ded16f41 to your computer and use it in GitHub Desktop.
Save SjB/a338a5486809001c82372673ded16f41 to your computer and use it in GitHub Desktop.
(defun dired-find-file-below ()
"Displays file at point in a new window below current"
(interactive)
(display-buffer-below-selected (find-file-noselect (dired-get-file-for-visit)) nil))
(define-key dired-mode-map (kbd "C-o") 'dired-find-file-below)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment