Skip to content
Merged
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
4 changes: 2 additions & 2 deletions content/tools/emacs-inf.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Edit your `.emacs` or `init.el` and add a function like the following if you are
----
(defun cljs-node-repl ()
(interactive)
(run-clojure "java -cp cljs.jar clojure.main repl.clj"))
(inf-clojure "java -cp cljs.jar clojure.main repl.clj"))
----

If you are using Leiningen:
Expand All @@ -33,7 +33,7 @@ If you are using Leiningen:
----
(defun cljs-node-repl ()
(interactive)
(run-clojure "lein trampoline run -m clojure.main repl.clj"))
(inf-clojure "lein trampoline run -m clojure.main repl.clj"))
----

Open your ClojureScript file and run `M-x cljs-node-repl`. You'll get a new buffer with the REPL. Switch back to your file and run `M-x inf-clojure-minor-mode`. `C-c C-l` will load the file. `C-c Meta-n` will switch your namespace. If you place your cursor at the end of a s-expression, `C-x C-e` will evaluate that expression. `C-c C-v` will show the docs. `C-c C-s` will show the source. `C-c <return>` will macroexpand. Refer to https://github.com/clojure-emacs/inf-clojure[inf-clojure] for more documentation.