about summary refs log tree commit diff
path: root/modules/workstation/emacs/init.el
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2020-12-07 09:14:42 +0000
committerAlyssa Ross <hi@alyssa.is>2020-12-09 00:47:38 +0000
commit5187563bbf385c0591ad5e1642ae01af4e38c486 (patch)
tree4b5e4823d0f5cf23c6b4ebfd843d69eaf5c4bdbf /modules/workstation/emacs/init.el
parent97eb32c03374ff0fa20d8a8ff0491c5289320e0b (diff)
downloadnixlib-5187563bbf385c0591ad5e1642ae01af4e38c486.tar
nixlib-5187563bbf385c0591ad5e1642ae01af4e38c486.tar.gz
nixlib-5187563bbf385c0591ad5e1642ae01af4e38c486.tar.bz2
nixlib-5187563bbf385c0591ad5e1642ae01af4e38c486.tar.lz
nixlib-5187563bbf385c0591ad5e1642ae01af4e38c486.tar.xz
nixlib-5187563bbf385c0591ad5e1642ae01af4e38c486.tar.zst
nixlib-5187563bbf385c0591ad5e1642ae01af4e38c486.zip
modules/emacs: unbind M-DEL in diff-mode
Diffstat (limited to 'modules/workstation/emacs/init.el')
-rw-r--r--modules/workstation/emacs/init.el6
1 files changed, 6 insertions, 0 deletions
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