This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-12
Channels
- # aleph (11)
- # aws-lambda (1)
- # beginners (158)
- # boot (19)
- # cider (14)
- # clara (23)
- # cljs-dev (3)
- # clojars (4)
- # clojure (133)
- # clojure-dev (57)
- # clojure-dusseldorf (1)
- # clojure-finland (2)
- # clojure-gamedev (31)
- # clojure-greece (15)
- # clojure-ireland (1)
- # clojure-italy (3)
- # clojure-russia (8)
- # clojure-spec (149)
- # clojure-uk (51)
- # clojurescript (88)
- # community-development (1)
- # component (5)
- # cursive (17)
- # datomic (3)
- # emacs (6)
- # fulcro (142)
- # graphql (1)
- # juxt (15)
- # lein-figwheel (1)
- # luminus (3)
- # lumo (6)
- # off-topic (11)
- # om (8)
- # onyx (5)
- # portkey (6)
- # proton (2)
- # protorepl (3)
- # quil (6)
- # re-frame (14)
- # reagent (9)
- # shadow-cljs (226)
- # specter (11)
- # testing (96)
- # uncomplicate (5)
- # unrepl (8)
- # vim (11)
Can I send clojure expressions from emacs without updating *1 *2 *3? Right now I have emacs code that does cider-interactive-eval, but doing the eval updates *1 *2 *3, which negatively impacts my REPL experience
(defun cider-tooling-eval (input callback &optional ns)
"Send the request INPUT and register the CALLBACK as the response handler.
NS specifies the namespace in which to evaluate the request."
;; namespace forms are always evaluated in the "user" namespace
(nrepl-request:eval input
callback
(cider-current-connection)
ns nil nil nil t ; tooling
))
if you look at nrepl-send-request
, you'll see the last parameter is tooling
controls this line in the ultimate nrepl send off function, nrepl-send-request
(when-let ((session (if tooling nrepl-tooling-session nrepl-session)))
(setq request (append request `("session" ,session))))
so however you want to do it, if you correctly set this var you can send forms without affecting the results
I'm using cider, but miss some features from IDEs 😞 eg. immediate highlighting of problematic code (eg wrong arity), or when the cursor is on a parameter, I'd like to have it highlighted where the parameter is used and such things.. any tips?
@pwrflx i recommend you https://github.com/candid82/flycheck-joker
some examples of what joker can do: https://github.com/candid82/SublimeLinter-contrib-joker#examples