Skip to content

Add ClojureCLR support #203

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Changelog

## master (unreleased)
* [#202](https://github.com/clojure-emacs/inf-clojure/issues/202): Add ClojureCLR support.

## 3.2.0 (2022-07-15)

Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,14 @@ It supports the following REPLs:

- Clojure
- ClojureScript
- ClojureCLR (via [lein-clr](https://github.com/kumarshantanu/lein-clr))
- [Planck](http://planck-repl.org/)
- [Lumo](https://github.com/anmonteiro/lumo)
- [Joker](https://joker-lang.org/)
- [babashka](https://github.com/borkdude/babashka)

`inf-clojure` provides a set of essential features for interactive
Clojure(Script) development:
Clojure/ClojureScript/ClojureCLR development:

* Enhanced REPL
* Interactive code evaluation
Expand Down
20 changes: 18 additions & 2 deletions inf-clojure.el
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
;; REPL.
;;
;; `inf-clojure` provides a set of essential features for interactive
;; Clojure(Script) development:
;; Clojure/ClojureScript/ClojureCLR development:
;;
;; * REPL
;; * Interactive code evaluation
Expand Down Expand Up @@ -75,6 +75,7 @@
(boot . "boot repl")
(clojure . "clojure")
(cljs . "clojure -m cljs.main -r")
(lein-clr . "lein clr repl")
(planck . "planck -d")
(babashka . "bb")
(lumo . "lumo -d")
Expand Down Expand Up @@ -153,7 +154,22 @@
(ns-vars . "(clojure.repl/dir %s)")
(set-ns . "(clojure.core/in-ns '%s)")
(macroexpand . "(clojure.core/macroexpand '%s)")
(macroexpand-1 . "(clojure.core/macroexpand-1 '%s)")))))
(macroexpand-1 . "(clojure.core/macroexpand-1 '%s)")))
(lein-clr . ((load . "(clojure.core/load-file \"%s\")")
(doc . "(clojure.repl/doc %s)")
(source . "(clojure.repl/source %s)")
(arglists .
"(try
(:arglists
(clojure.core/meta
(clojure.core/resolve
(clojure.core/read-string \"%s\"))))
(catch Exception e nil))")
(apropos . "(doseq [var (sort (clojure.repl/apropos \"%s\"))] (println (str var)))")
(ns-vars . "(clojure.repl/dir %s)")
(set-ns . "(clojure.core/in-ns '%s)")
(macroexpand . "(clojure.core/macroexpand '%s)")
(macroexpand-1 . "(clojure.core/macroexpand-1 '%s)")))))

(defvar-local inf-clojure-repl-type nil
"Symbol to define your REPL type.
Expand Down