Re: What is the minimal Emacs config for practical Clojure development?

2018-07-05 Thread Daniel
Luminus has a leiningen template which works out-of-the-box with Cider and figwheel. Just (start-fw) and (cljs) inside the repl. It would be nice if we could have both repls open simultaneously within emacs, but everything was super unreliable the last time I tried that. -- You received this

Re: What is the minimal Emacs config for practical Clojure development?

2018-07-05 Thread Andrea Richiardi
On Thursday, July 5, 2018 at 1:01:14 PM UTC-7, Austin Haas wrote: > > Gary, I had tried Figwheel a couple years ago and I had a positive > experience, so that was the next thing I reached for. > > I just want a practical dev environment, for both Clojure and > Clojurescript. To me, that means

Re: What is the minimal Emacs config for practical Clojure development?

2018-07-05 Thread Andrea Richiardi
There is one more trick though. The new cljs.main allows you to have a socket repl for ClojureScript. This can then be used with `inf-clojure`. It will not be fancy and probably things will be broken though...the code path has not been seen much love. I did some experimentation and it

Re: What is the minimal Emacs config for practical Clojure development?

2018-07-05 Thread Austin Haas
Gary, I had tried Figwheel a couple years ago and I had a positive experience, so that was the next thing I reached for. I just want a practical dev environment, for both Clojure and Clojurescript. To me, that means simple and stable. I definitely want fewer things that can go wrong, but if I

Re: What is the minimal Emacs config for practical Clojure development?

2018-07-05 Thread Gary Trakhman
I'm not sure the desires for lightweight clojure-emacs integration and any CLJS integration are yet sympathetic. Figwheel is a pretty complex piece of software. For example, see my issue that has been languishing for almost a year and hints at greater problems with the compiler integration:

Re: What is the minimal Emacs config for practical Clojure development?

2018-07-05 Thread rob
If ClojureScript repl integration works smoothly out of the box then that's already one reason to use it over Cider... (This is not a jab at Cider, just a statement of fact that Cider's support for ClojureScript development has so far been lacking, IME) On Thursday, July 5, 2018 at 10:51:02

Re: What is the minimal Emacs config for practical Clojure development?

2018-07-05 Thread Austin Haas
I tried Monroe, yesterday. It seems to work as advertised. I didn't have any issues. It's nice that "jump to definition" works out of the box. It does not appear to support Eldoc, so no help with function signatures. This is the Emacs config I'm currently using: ;;; clojure-mode

Re: defrecord can't impl some interface methods

2018-07-05 Thread Leon Grapenthin
Great thanks, I just upvoted that. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe

Re: How do I use spec and deftype together?

2018-07-05 Thread markus . agwin
Just in case someone stumbles over this post, I found a simple solution which works for me: (do (require '[clojure.spec.alpha :as s]) (import '(clojure.lang ISeq)) (defprotocol Foo (foo [this])) (defrecord Bar [bar] Foo (foo [this] (.bar this))) (deftype Baz [bar] Foo (foo [this]