diff options
| author | Grégoire Duchêne <gduchene@awhk.org> | 2022-02-20 14:23:40 +0000 |
|---|---|---|
| committer | Grégoire Duchêne <gduchene@awhk.org> | 2022-02-20 14:23:40 +0000 |
| commit | 05cd7f4eef868a9d2f74fb474757f41a184abec0 (patch) | |
| tree | 57e445fde9d2d990f5df998ab1390dfeea65686f | |
| parent | 05b01f18c3cda01dc2fa0256a0c07fd77e498f1f (diff) | |
emacs: Use local-set-key in Dired configuration
| -rw-r--r-- | emacs/init.el | 5 |
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 |
