This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-10
Channels
- # adventofcode (3)
- # aws (2)
- # beginners (85)
- # boot (8)
- # boot-dev (4)
- # cider (36)
- # clara (3)
- # cljs-dev (87)
- # cljsrn (3)
- # clojure (87)
- # clojure-austin (12)
- # clojure-brasil (1)
- # clojure-dev (8)
- # clojure-dusseldorf (5)
- # clojure-estonia (5)
- # clojure-greece (4)
- # clojure-italy (3)
- # clojure-spec (17)
- # clojure-uk (55)
- # clojurescript (70)
- # core-logic (2)
- # cursive (6)
- # data-science (18)
- # datomic (13)
- # emacs (34)
- # fulcro (347)
- # graphql (12)
- # hoplon (6)
- # jobs (3)
- # jobs-discuss (43)
- # juxt (2)
- # keechma (31)
- # leiningen (29)
- # lumo (2)
- # midje (2)
- # off-topic (118)
- # om-next (4)
- # onyx (39)
- # pedestal (6)
- # re-frame (85)
- # reagent (21)
- # remote-jobs (3)
- # ring (5)
- # rum (2)
- # shadow-cljs (126)
- # spacemacs (1)
- # sql (6)
ups, is the function will verify my claimcider--get-repl-buffer
gone in CIDER?
@arrdem No idea if this is feasible or not. If someone has seen some mode doing it we can certainly borrow some inspiration from there.
What’s the best way to do the equivalent of (set! *print-length* 16)
on connection with cider?
should I add a cider-connected-hook?
ok following seems to work:
(add-hook 'cider-connected-hook (lambda ()
(cider-interactive-eval
"(set! *print-length* 16)\n")))
yeah looks like it works
there is a \n
in there… or do you mean something else?
yeah that's what i meant. but i was thinking of something other than cider interactive eval so i see why you did it
well I’m asking because I was expecting there to be a better way (or a config option for this)
so open to alternatives
i was looking. there's a cider-refresh-after-fn
that i was wondering was called on start up
not sure if you use cider-refresh
much, but maybe you could (setq cider-refresh-after-fn "(set! *print-length*16)")
and then add a cider connected hook to eval that function. and then if you refresh it will be called again for you
I do on some projects… guessing what you’re saying is that a refresh will reset the *print-length*
yeah. there are pre and post hook functions on refresh. so if you set this as a post refresh function and then also call it at jack in you should have it at all times
@bozhidar: I have that set, but it doesn’t seem to be picked up in cider…
Perhaps we can have those as defcustoms
in CIDER and pass the to lein
/`boot` on jack-in, if they support it.
That’s odd - I thought this was something global for the REPL. After all it’s not like CIDER creates some different REPL.
ahh there’s a syntax error in my profiles.clj
I had :repl-options { *print-length* 100 }
instead of having an inner :init
checking…
yes it works 🙂
thanks