Skip to content

Commit

Permalink
Load all files (clj, cljc, & cljs) on cider-load-all-files (#2558)
Browse files Browse the repository at this point in the history
  • Loading branch information
rduplain authored and bbatsov committed Jan 7, 2019
1 parent 28a51bc commit 9409acf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
### Changes

* [#2496](https://github.com/clojure-emacs/cider/issues/2496): Replace CIDER's pprint implementation with nREPL 0.5's built-in pprint support.
* [#2558](https://github.com/clojure-emacs/cider/pull/2558): Load clj, cljc, & cljs (if cljs repl available) files on `cider-load-all-files` (`C-c C-M-l`). Previously, this only loaded clj files.

## 0.19.0 (2019-01-01)

Expand Down
5 changes: 4 additions & 1 deletion cider-connection.el
Original file line number Diff line number Diff line change
Expand Up @@ -798,7 +798,10 @@ session."
(:auto (if (eq cur-type 'multi)
'(clj cljs)
cur-type))))
(repls (cider-repls type 'ensure)))
(ensure (cl-case which
(:auto nil)
(t 'ensure)))
(repls (cider-repls type ensure)))
(mapcar function repls))))

;; REPLs double as connections in CIDER, so it's useful to be able to refer to
Expand Down
2 changes: 1 addition & 1 deletion cider-eval.el
Original file line number Diff line number Diff line change
Expand Up @@ -1091,7 +1091,7 @@ is done by `cider-load-buffer'."
Useful when the running nREPL on remote host."
(interactive "DLoad files beneath directory: ")
(mapcar #'cider-load-file
(directory-files-recursively directory ".clj$")))
(directory-files-recursively directory "\\.clj[cs]?$")))

(defalias 'cider-eval-file 'cider-load-file
"A convenience alias as some people are confused by the load-* names.")
Expand Down

0 comments on commit 9409acf

Please sign in to comment.