summaryrefslogtreecommitdiff
path: root/.emacs.d/init.el
diff options
context:
space:
mode:
Diffstat (limited to '.emacs.d/init.el')
-rw-r--r--.emacs.d/init.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index 0c05d204..03098706 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -974,6 +974,11 @@ To be used only when it seems to be necessary."
(global-set-key [?\C--] nil)
(global-set-key [?\C-\M--] nil)
+(with-eval-after-load 'diff-mode
+ (cl-loop with map = (lookup-key diff-mode-map "\e")
+ for i from ?0 to ?9
+ do (define-key map (char-to-string i) nil)))
+
;; Similarly, we cannot reliably distinguish <C-backspace> from <backspace>.
;; Many terminal emulators send ^? for <backspace> and ^H for <C-backspace>,
;; or the other way around, but not all of them. Firefox binds <C-backspace>