Skip to content

Commit e5ce383

Browse files
Inc0nbbatsov
authored andcommitted
Use comint-mode-map as parent map instead
Whilst playing with inf-clojure-mode-map, some previous binds are overriden, because copy-keymap is used instead of set-parent-map. This will help for that.
1 parent 59a9f06 commit e5ce383

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

inf-clojure.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,8 @@ Either \"no process\" or \"buffer-name(repl-type)\""
339339
"no process"))
340340

341341
(defvar inf-clojure-mode-map
342-
(let ((map (copy-keymap comint-mode-map)))
342+
(let ((map (make-sparse-keymap)))
343+
(set-keymap-parent map comint-mode-map)
343344
(define-key map (kbd "C-x C-e") #'inf-clojure-eval-last-sexp)
344345
(define-key map (kbd "C-c C-l") #'inf-clojure-load-file)
345346
(define-key map (kbd "C-c C-a") #'inf-clojure-show-arglists)

0 commit comments

Comments
 (0)