dot/emacs: Fix DEL to work properly in `isearch' mode.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 18 May 2020 03:53:32 +0000 (04:53 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 18 May 2020 03:53:32 +0000 (04:53 +0100)
Now it actually deletes a single character, rather than doing some
random thing.

The old binding is still available as M-DEL, should I ever want it.

dot/emacs

index 7f876e7..7208737 100644 (file)
--- a/dot/emacs
+++ b/dot/emacs
      (define-key outline-mode-prefix-map [?\C-r] 'reveal-mode)
      (define-key outline-mode-prefix-map [?\C--] 'mdw-outline-collapse-all)))
 
+(define-key isearch-mode-map [?\C-?] 'isearch-del-char)
+(define-key isearch-mode-map [?\e ?\C-?] 'isearch-delete-char)
+
 (setq imenu-auto-rescan t
       imenu-auto-rescan-maxout (* 128 1024)
       imenu-max-items 60)