summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2022-02-20 14:23:40 +0000
committerGrégoire Duchêne <gduchene@awhk.org>2022-02-20 14:23:40 +0000
commit05cd7f4eef868a9d2f74fb474757f41a184abec0 (patch)
tree57e445fde9d2d990f5df998ab1390dfeea65686f
parent05b01f18c3cda01dc2fa0256a0c07fd77e498f1f (diff)
emacs: Use local-set-key in Dired configuration
-rw-r--r--emacs/init.el5
1 files changed, 2 insertions, 3 deletions
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