summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBozhidar Batsov <bozhidar@batsov.com>2018-08-08 21:57:12 +0300
committerBozhidar Batsov <bozhidar@batsov.com>2018-08-08 21:57:12 +0300
commit84b67f44af64d8b543bdd916359ad6c0e9e843d4 (patch)
treec335dea1f78e4290c9e96671edac65fc9ca85246
parentd37de6084f1c57278a192817d0fb0de542989d63 (diff)
Restore the C-c C-p and C-c C-f keybindings
Seems more people were relying on those than I originally expected. :-) Vox populi, vox dei!
-rw-r--r--CHANGELOG.md4
-rw-r--r--cider-mode.el2
2 files changed, 4 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6f3aafe4..615c11d6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -48,8 +48,8 @@
* **(Breaking)** `cider-jack-in-clojurescript` now creates only a ClojureScript REPL (use `cider-jack-in-clj&cljs` to create both REPLs).
* [#2357](https://github.com/clojure-emacs/cider/issues/2357): Support both keywords and strings as test selectors (previously it was only strings).
* [#2378](https://github.com/clojure-emacs/cider/pull/2378): Add autoloads target to Makefile.
-* **(Breaking)** Move `cider-pprint-eval-last-sexp`, previously on `C-c C-p`, to `C-c C-v (C-)f (C-)e` in the `cider-eval-commands-map`.
-* **(Breaking)** Move `cider-pprint-eval-defun-at-point`, previously on `C-c C-f`, to `C-c C-v (C-)f (C-)d` in the `cider-eval-commands-map`.
+* Map `cider-pprint-eval-last-sexp` to `C-c C-v (C-)f (C-)e` in the `cider-eval-commands-map`.
+* Map `cider-pprint-eval-defun-at-point` to `C-c C-v (C-)f (C-)d` in the `cider-eval-commands-map`.
* Accept bare figwheel-main build names (e.g., `dev`). Previously, a keyword (e.g., `:dev`) was required.
* Stop releasing CIDER and cider-nrepl together. cider-nrepl now has its own release cycle and CIDER introduces `cider-required-middleware-version` to track it.
diff --git a/cider-mode.el b/cider-mode.el
index 6c47a2a4..8258f05c 100644
--- a/cider-mode.el
+++ b/cider-mode.el
@@ -470,6 +470,8 @@ As it stands Emacs fires these events on <mouse-8> and <mouse-9> on 'x' and
(define-key map (kbd "C-c C-c") #'cider-eval-defun-at-point)
(define-key map (kbd "C-x C-e") #'cider-eval-last-sexp)
(define-key map (kbd "C-c C-e") #'cider-eval-last-sexp)
+ (define-key map (kbd "C-c C-p") #'cider-pprint-eval-last-sexp)
+ (define-key map (kbd "C-c C-f") #'cider-pprint-eval-defun-at-point)
(define-key map (kbd "C-c C-v") 'cider-eval-commands-map)
(define-key map (kbd "C-c C-j") 'cider-insert-commands-map)
(define-key map (kbd "C-c M-;") #'cider-eval-defun-to-comment)