From a6fffa384c0e383e3ea6d5daab3c61f60478c871 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Wed, 8 May 2024 01:30:48 +0530 Subject: (Emacs/app|config)~w(grep|dired) have the same finish/abort binds ZZ and ZQ. --- Emacs/.config/emacs/app.org | 7 +++++-- Emacs/.config/emacs/config.org | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) (limited to 'Emacs/.config') diff --git a/Emacs/.config/emacs/app.org b/Emacs/.config/emacs/app.org index d5201a6..089a3d4 100644 --- a/Emacs/.config/emacs/app.org +++ b/Emacs/.config/emacs/app.org @@ -267,8 +267,11 @@ easier than even using the mark based system. :general (nmmap :keymaps 'dired-mode-map - "." #'browse-url-of-dired-file - "W" #'wdired-change-to-wdired-mode)) + "W" #'wdired-change-to-wdired-mode) + (nmmap + :keymaps 'wdired-mode-map + "ZZ" #'wdired-finish-edit + "ZQ" #'wdired-abort-changes)) #+end_src * WAIT Xwidget :PROPERTIES: diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 045502b..61c60f5 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -671,8 +671,8 @@ thing faster and within Emacs lisp. ~rgrep~ is useful though. (nmmap :keymaps 'wgrep-mode-map "q" #'evil-record-macro - "Zz" #'wgrep-finish-edit - "Zq" #'wgrep-abort-changes) + "ZZ" #'wgrep-finish-edit + "ZQ" #'wgrep-abort-changes) :config ;; Without this wgrep doesn't work properly (evil-set-initial-state 'grep-mode 'normal)) -- cgit v1.2.3-13-gbd6f