diff options
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/init-dired.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/init-dired.el b/lisp/init-dired.el index ac4c279..597df4c 100644 --- a/lisp/init-dired.el +++ b/lisp/init-dired.el @@ -48,4 +48,12 @@ (define-key ctl-x-4-map "D" 'km/dired-switch-to-buffer-other-window) (global-set-key (kbd "C-x D") 'km/dired-switch-to-buffer) +(defun km/org-open-dired-file () + (interactive) + (org-open-file (dired-get-filename))) + +(eval-after-load 'org + ;; This overrides `dired-find-file', which is also bound to "f". + '(define-key dired-mode-map "e" 'km/org-open-dired-file)) + (provide 'init-dired) |