Skip to content

Commit 254f17d

Browse files
committed
Add a REPL shortcut for cider-repl-require-repl-utils
This makes it easy to require common REPL utility functions like `doc`, `source`, etc. in REPL buffers. Those utils are auto-required in the initial namespace (typically `user`), but you have to require them yourself after switching to new namespaces.
1 parent f7f1256 commit 254f17d

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66

77
* [#2082](https://github.com/clojure-emacs/cider/pull/2082), [cider-nrepl#440](https://github.com/clojure-emacs/cider-nrepl/pull/440): Add specialized stacktraces for clojure.spec assertions.
88
* [#2111](https://github.com/clojure-emacs/cider/pull/2111): Add `cider-pprint-eval-last-sexp-to-comment` and `cider-pprint-eval-defun-to-comment`.
9+
* Add a REPL shortcut for `cider-repl-require-repl-utils` (this makes it easy to require common functions like `doc`, `source`, etc. in REPL buffers).
910

1011
### Changes
1112

cider-repl.el

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1381,6 +1381,7 @@ constructs."
13811381
(cider-repl-add-shortcut "quit" #'cider-quit)
13821382
(cider-repl-add-shortcut "restart" #'cider-restart)
13831383
(cider-repl-add-shortcut "version" #'cider-version)
1384+
(cider-repl-add-shortcut "require-repl-utils" #'cider-repl-require-repl-utils)
13841385

13851386
(defconst cider-repl-shortcuts-help-buffer "*CIDER REPL Shortcuts Help*")
13861387

@@ -1507,6 +1508,7 @@ constructs."
15071508
"--"
15081509
["Set REPL ns" cider-repl-set-ns]
15091510
["Toggle pretty printing" cider-repl-toggle-pretty-printing]
1511+
["Require REPL utils" cider-repl-require-repl-utils]
15101512
"--"
15111513
["Browse classpath" cider-classpath]
15121514
["Browse classpath entry" cider-open-classpath-entry]

0 commit comments

Comments
 (0)