summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSean Whitton <spwhitton@spwhitton.name>2023-02-14 10:45:16 -0700
committerSean Whitton <spwhitton@spwhitton.name>2023-02-14 10:45:19 -0700
commitd945c74512ae2e6344bb8c9444d71a96d7770c83 (patch)
tree3095d367c87d996b81ddce6d5be51812ff9fb7a6
parentf660ee8a08a628635836a4cc376c66f24d24d317 (diff)
downloaddotfiles-d945c74512ae2e6344bb8c9444d71a96d7770c83.tar.gz
fix backspace in *scratch*
-rw-r--r--.emacs.d/init.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index fbad25e6..6b68302b 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -4314,8 +4314,12 @@ mutt's review view, after exiting EDITOR."
(define-key emacs-lisp-mode-map "\C-z\C-e" #'eval-buffer)
;; This defeats `slime-repl-mode-map' grabbing backspace from Paredit.
-;; Unconditionally unbinding should be safe as always use Paredit for Lisp.
+;; We reinstate a similar binding in `lisp-interaction-mode-map' such that the
+;; code below doesn't just bind the ordinary `paredit-backward-delete' into
+;; `spw/scratch-paredit-mode-map' for DEL.
+;; In all other Lisp buffers, `paredit-mode-map' provides the binding for DEL.
(define-key lisp-mode-shared-map "\177" nil)
+(define-key lisp-interaction-mode-map "\177" #'delete-backward-char)
;; Add an `imenu-generic-expression' entry for macros from Consfigurator and
;; from my consfig. Would be better to somehow use .dir-locals.el.