about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDavid Morgan <djm_uk@protonmail.com>2024-10-01 13:11:14 +0100
committerDavid Morgan <djm_uk@protonmail.com>2024-10-01 13:11:14 +0100
commitd8b57696cbb8673d4b7ea10f9ba2537b3eaaf71b (patch)
tree58e384a030d64d102c621581ff4a351211dd6086
parentec4ba843db5aac5ebeedddb1456c828f810d24cc (diff)
downloaddotfiles-d8b57696cbb8673d4b7ea10f9ba2537b3eaaf71b.tar.gz
Use some paredit commands in cider-repl-mode
-rw-r--r--.emacs.d/lisp/init-clojure.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/.emacs.d/lisp/init-clojure.el b/.emacs.d/lisp/init-clojure.el
index b85c090..8b722aa 100644
--- a/.emacs.d/lisp/init-clojure.el
+++ b/.emacs.d/lisp/init-clojure.el
@@ -214,7 +214,11 @@
         ("C-c M-l" . cider-load-file)
         ("C-c M-b" . cider-interrupt))
   (:map cider-repl-mode-map
-        ("C-c M-b" . cider-interrupt))
+        ("C-c M-b" . cider-interrupt)
+        ;; sp commands sometimes behave strangely in the cider repl buffer
+        ("M-d" . paredit-forward-kill-word)
+        ("M-DEL" . paredit-backward-kill-word)
+        ("C-k" . paredit-kill))
   (:map cider-start-map
         ("C-c C-M-j" . cider-jack-in-and-run-main))
   (:map clojure-mode-map