This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-01-03
Channels
- # adventofcode (1)
- # beginners (76)
- # boot (88)
- # cider (63)
- # clojure (357)
- # clojure-austin (2)
- # clojure-berlin (8)
- # clojure-brasil (8)
- # clojure-nl (1)
- # clojure-russia (22)
- # clojure-spec (17)
- # clojure-uk (47)
- # clojurescript (67)
- # cursive (45)
- # datascript (3)
- # datomic (45)
- # dirac (7)
- # emacs (3)
- # funcool (2)
- # hoplon (26)
- # jobs (2)
- # jobs-discuss (11)
- # luminus (6)
- # off-topic (243)
- # om (40)
- # om-next (7)
- # onyx (23)
- # overtone (1)
- # portland-or (2)
- # protorepl (11)
- # re-frame (55)
- # reagent (58)
- # rum (12)
- # sql (4)
- # test-check (12)
- # untangled (25)
Using cider, can I get something like "neotree", but instead of showing all files in a directory, it shows me def/defmacro/defns within a single *.cljc file ?
I was just looking at speedbar (which works on .el files), but it does not work on clj files yet; will look into imenyu now; thanks!
loccur collapses the current buffer down to whatever matches the pattern you gave it
anybody knows how to start a cider repl for a cljs/node project? is a there an up to date howto, guide etc?
but for node i need this one?:
("(do (require 'cljs.repl.node) (cemerick.piggieback/cljs-repl (cljs.repl.node/repl-env)))"
"Node" " (requires NodeJS to be installed)β)
You might also be looking for cider-jack-in-clojurescript
and not cider-jack-in
, depending on how your project is set up
the former starts a Clojure REPL and then bootstraps a CLJS REPL, the latter just starts a Clojure REPL and then you can start a CLJS environment however you like with e.g. (boot βreplβ)
or start
some Component
In cider, let's say I'm in a (comment) block. Is there a builtin way to make C-M-x work there, but one level below the comment?
Currently, I need to go to the end of the form I want, and do C-x C-e, but outside (comment) forms, C-M-x work anywhere.
you're asking if there's a way to recognize that you're in a comment block and eval the form underneath it?
just to see the result.
OK, nice. I'll try to see if I can implement and then contribute.
@ustunozgur I am totally with you I have been wanting to implement that myself for a long time
(defn make-handler [nm] (fn [o] #break 2 #_ (throw (ex-info nm o)))) (defn f2 [x] #break (+ x 2)) (f2 4) ((make-handler "foo") {:a 2}) does #break only work in defns, and refuse to work inside anonymous functions?
@qqq @dpsutton have you tried M-x cider-browse-ns
to view the def/defn in a namespace? Once a REPL is running you can browse the contents of any namespace loaded into the REPL
@dpsutton setting this as a dir local:
((nil
(cider-cljs-lein-repl . "(do (require 'cljs.repl.node) (cemerick.piggieback/cljs-repl (cljs.repl.node/repl-env)))")))
worked for a node.js cljs repl. ta!i'm keeping an eye out for cljs interaction as i think it is weaker than clj support
Is there a way to clean up the whitespace near the closing parantheses automatically? For example, say I have the following:
(defn foo []
(bar x)
)
Is there a way to move the last paren to the end of the last line?
(defn foo []
(bar x))
Currently, I go to the end of the bar
line, and keep hitting C-k until it deletes everything.
I guess paredit should have something builtin for this.
@ustunozgur if you're using paredit, you can just type the closing paren anywhere between the end-paren of (bar x)
and the next paren. Actually, I think it works anywhere between the open and close paren of the pair surrounding the defn
as long as you're not inside a nested set of delimiters.