summaryrefslogtreecommitdiff
path: root/dired-conf.el
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2022-08-31 01:05:29 +0800
committerJSDurand <mmemmew@gmail.com>2022-08-31 01:05:29 +0800
commit305adee7e32aae97d916434ad89d8f1af7e2cbc5 (patch)
tree60f0e28593badef22860b86e323d3e24addb7812 /dired-conf.el
parent236967bfc5cc3f10842d16ccd3f238e61287b652 (diff)
dired: define the key for wdired after it is loaded.
* dired-conf.el (wdired-mode-map): For some reason I was trying to define a key for wdired-mode-map before I loaded wdired.
Diffstat (limited to 'dired-conf.el')
-rw-r--r--dired-conf.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/dired-conf.el b/dired-conf.el
index f638def..859875b 100644
--- a/dired-conf.el
+++ b/dired-conf.el
@@ -32,8 +32,6 @@
(require 'dired-x)
(require 'files)
-(define-key wdired-mode-map (vector 'return) #'wdired-finish-edit)
-
(set 'insert-directory-program "gls")
(set 'dired-listing-switches
@@ -60,6 +58,7 @@
(setq wdired-allow-to-change-permissions t)
(setq wdired-create-parent-directories t)
+(define-key wdired-mode-map (vector 'return) #'wdired-finish-edit)
(require 'image-dired)