From 05cd7f4eef868a9d2f74fb474757f41a184abec0 Mon Sep 17 00:00:00 2001 From: GrĂ©goire DuchĂȘne Date: Sun, 20 Feb 2022 14:23:40 +0000 Subject: emacs: Use local-set-key in Dired configuration --- emacs/init.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'emacs/init.el') diff --git a/emacs/init.el b/emacs/init.el index 2f36a8d..321aa88 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -133,9 +133,8 @@ (put 'dired-find-alternate-file 'disabled nil) (my/with-add-hook 'dired-mode-hook - (setq-local mouse-1-click-follows-link (- mouse-1-click-follows-link))) - -(define-key dired-mode-map [mouse-1] #'dired-find-file) + (setq-local mouse-1-click-follows-link (- mouse-1-click-follows-link)) + (local-set-key [mouse-1] #'dired-find-file)) ;; Go -- cgit v1.2.3-70-g09d2