diff options
author | Thomas Voss <mail@thomasvoss.com> | 2025-01-04 23:48:33 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2025-01-04 23:48:33 +0100 |
commit | 8561fa37f998dec3f8b1649b8d60de75aa6edd4d (patch) | |
tree | 550d15cc6aa6159d07e3dcc8e2f140250a38acb9 /.config | |
parent | f93579ccddf3f3f8a5a50280dd2722fee8f71f3d (diff) |
emacs: Configure wdired
Diffstat (limited to '.config')
-rw-r--r-- | .config/emacs/modules/mm-modeline.el | 3 | ||||
-rw-r--r-- | .config/emacs/modules/mm-theme.el | 7 |
2 files changed, 8 insertions, 2 deletions
diff --git a/.config/emacs/modules/mm-modeline.el b/.config/emacs/modules/mm-modeline.el index 2981307..eae4dce 100644 --- a/.config/emacs/modules/mm-modeline.el +++ b/.config/emacs/modules/mm-modeline.el @@ -50,7 +50,8 @@ ("Gmake" . "GMake") ("Imake" . "IMake") ("Js" . "JavaScript") - ("Ts Mode" . "Tree-Sitter Mode")) + ("Ts Mode" . "Tree-Sitter Mode") + ("Wdired" . "WDired")) "Alist of substrings in major mode names that should be remapped. Some major modes have substrings that would be better displayed in another manner. For example expanding an abbreviation such as ‘Js’ to diff --git a/.config/emacs/modules/mm-theme.el b/.config/emacs/modules/mm-theme.el index f4b9c9a..adb0bf6 100644 --- a/.config/emacs/modules/mm-theme.el +++ b/.config/emacs/modules/mm-theme.el @@ -203,9 +203,14 @@ See also the `mm-theme-background-opacity' variable." ;;; More Intuiative UI for Certain Modes +(defun mm-disable-line-selection-mode () + (line-selection-mode -1)) + (use-package line-selection-mode :hook ((bookmark-bmenu-mode dired-mode ibuffer-mode magit-repolist-mode) - . line-selection-mode)) + . line-selection-mode) + :config + (add-hook wdired-mode-hook #'mm-disable-line-selection-mode)) ;;; Line Highlighting |