From 522ef89b1c9561d1237c164945bab2ee52951d45 Mon Sep 17 00:00:00 2001 From: Riyyi Date: Thu, 19 Aug 2021 15:10:02 +0200 Subject: [PATCH] Emacs: Add wdired keybindings, allow permission modifications --- .config/emacs/config.org | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.config/emacs/config.org b/.config/emacs/config.org index 40a5478..e25f572 100644 --- a/.config/emacs/config.org +++ b/.config/emacs/config.org @@ -49,6 +49,7 @@ - [[#prettify][Prettify]] - [[#general][General]] - [[#buffers][Buffers]] + - [[#dired][Dired]] - [[#electric][Electric]] - [[#file-paths][File Paths]] - [[#file-backups-versioning][File Backups Versioning]] @@ -892,6 +893,12 @@ Debug Adapter Protocol. (setq ibuffer-expert t) #+END_SRC +** Dired + +#+BEGIN_SRC emacs-lisp +(setq wdired-allow-to-change-permissions t) +#+END_SRC + ** Electric #+BEGIN_SRC emacs-lisp @@ -1876,6 +1883,13 @@ Set keybinds to functionality of installed packages. "RET" #'evil-ret) (general-def 'motion org-agenda-mode-map "RET" #'org-agenda-switch-to) + + ;; Wdired + (with-eval-after-load 'wdired + (general-def '(normal insert) wdired-mode-map + "M-c" #'wdired-finish-edit + "M-k" #'wdired-abort-changes + )) ) #+END_SRC