From 402720792ea8eaf30711c97b46cada396fd90b66 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Fri, 24 Jan 2020 10:04:49 +0000 Subject: [PATCH] Prefer opening locate buffers using dired-find-file-other-window `dired-display-file` opens the file in another window but does not focus that window. `dired-find-file-other-window` does what `dired-display-file` does except it focuses that window. --- configs/shared/.emacs.d/wpc/packages/wpc-dired.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/shared/.emacs.d/wpc/packages/wpc-dired.el b/configs/shared/.emacs.d/wpc/packages/wpc-dired.el index 90ac5f4a6..bc3915914 100644 --- a/configs/shared/.emacs.d/wpc/packages/wpc-dired.el +++ b/configs/shared/.emacs.d/wpc/packages/wpc-dired.el @@ -35,7 +35,7 @@ (general-define-key :keymaps 'locate-mode-map :states 'normal - "o" #'dired-display-file)) + "o" #'dired-find-file-other-window)) (provide 'wpc-dired) ;;; wpc-dired.el ends here