From 5187563bbf385c0591ad5e1642ae01af4e38c486 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Mon, 7 Dec 2020 09:14:42 +0000 Subject: modules/emacs: unbind M-DEL in diff-mode --- modules/workstation/emacs/init.el | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'modules/workstation/emacs/init.el') diff --git a/modules/workstation/emacs/init.el b/modules/workstation/emacs/init.el index 0d3c45b90ce2..b2694a7425b1 100644 --- a/modules/workstation/emacs/init.el +++ b/modules/workstation/emacs/init.el @@ -51,6 +51,12 @@ ;; This relies on an Emacs patch to apply to async-shell-command. (setq comint-terminfo-terminal "dumb-emacs-ansi") +;;; Diff Mode ;;; +;; Unbind M-DEL from scroll-down-command, so it does the same thing as +;; in the rest of Emacs (backward-kill-word). +(with-eval-after-load 'diff-mode + (define-key diff-mode-map (kbd "M-DEL") nil)) + ;;; Dired ;;; (with-eval-after-load 'dired (setq dired-listing-switches -- cgit 1.4.1