branch: elpa/cider commit 4cdcf7e2f91d89b733accf8e8c26195ea0f9be5f Author: Maks <93301263+mvpro...@users.noreply.github.com> Commit: GitHub <nore...@github.com>
Fix `cider-insert-commands-map` variable initialization (#3478) --- CHANGELOG.md | 1 + cider-mode.el | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cdaa8c30b1..d9d78490f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -38,6 +38,7 @@ - Fix the `cider-xref-fn-deps` buttons to direct to the right file. - Fix the `cider-find-keyword` overall reliability and correctness, particularly for ClojureScript. - Make TRAMP functionality work when using non-standard ports. +- Fix the `cider-insert-commands-map` variable initialization. ### Changes diff --git a/cider-mode.el b/cider-mode.el index 8403bbdddb..bbb7934e88 100644 --- a/cider-mode.el +++ b/cider-mode.el @@ -204,7 +204,8 @@ With a prefix argument, prompt for function to run instead of -main." (define-key map (kbd "C-e") #'cider-insert-last-sexp-in-repl) (define-key map (kbd "C-d") #'cider-insert-defun-in-repl) (define-key map (kbd "C-r") #'cider-insert-region-in-repl) - (define-key map (kbd "C-n") #'cider-insert-ns-form-in-repl))) + (define-key map (kbd "C-n") #'cider-insert-ns-form-in-repl) + map)) (defcustom cider-switch-to-repl-on-insert t "Whether to switch to the REPL when inserting a form into the REPL."