This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-06-17
Channels
- # announcements (4)
- # beginners (82)
- # boot (1)
- # calva (26)
- # cider (13)
- # clj-kondo (41)
- # cljs-dev (25)
- # cljsrn (7)
- # clojure (82)
- # clojure-berlin (1)
- # clojure-brasil (1)
- # clojure-dev (13)
- # clojure-europe (11)
- # clojure-italy (27)
- # clojure-nl (8)
- # clojure-russia (6)
- # clojure-spec (32)
- # clojure-uk (15)
- # clojurescript (61)
- # core-async (1)
- # cursive (9)
- # data-science (1)
- # datomic (18)
- # duct (1)
- # emacs (2)
- # events (7)
- # fulcro (13)
- # graalvm (5)
- # immutant (1)
- # jobs-discuss (63)
- # leiningen (3)
- # off-topic (48)
- # om (3)
- # pathom (13)
- # planck (20)
- # prelude (3)
- # re-frame (55)
- # reagent (13)
- # reitit (5)
- # rewrite-clj (12)
- # shadow-cljs (67)
- # spacemacs (14)
- # sql (5)
- # tools-deps (4)
- # vim (23)
- # yada (2)
hello, anybody knows if there's a way in spacemacs to automatically refresh the browser when sending something to the clojure repl?
@andrea.imparato if you are using Ring to drive your server-side web application, then you can use wrap-reload
around your application and it will reload the browser when changes are saved.
For example
https://practicalli.github.io/clojure-webapps/middleware-in-ring/wrap-reload.html
or maybe you want something like figwheel
Yes, figwheel if it's client side ClojureScript that you want to reload
Anyone using clj-kondo
in Spacemacs yet for linting their clojure code? I plan to give it a try this week. Would like to see how it compares to joker
@jr0cket I opted to enable both joker and clj-kondo so I first added these to my .spacemacs config like so:
dotspacemacs-additional-packages '(flycheck-clj-kondo flycheck-joker)
And then again in .spacemacs added the following under dotspacemacs/user-config
;; setup clojure linters
(use-package clojure-mode
:ensure t
:config
(require 'flycheck-joker)
(require 'flycheck-clj-kondo)
(dolist (checkers '((clj-kondo-clj . clojure-joker)
(clj-kondo-cljs . clojurescript-joker)
(clj-kondo-cljc . clojure-joker)))
(flycheck-add-next-checker (car checkers) (cons 'error (cdr checkers)))))
That's great, thank you. I will give this a try later tonight. I wonder how easy this would be to add to the Clojure layer as a pull request... Would be great to have them as options you can enable through variables (like is done with clj-refactor)
I've found this: https://github.com/borkdude/flycheck-clj-kondo/issues/2 => You might need to modify the snippet a bit
But anyway, thanks for pointing this out. I've just given the clj-kondo a second chance and it looks great!
this may be helpful when contemplating about the joker vs. clj-kondo differences: https://speakerdeck.com/borkdude/clj-kondo-a-linter-for-clojure-code-that-sparks-joy-dcm-may-19
@U06BE1L6T thanks for pointing out the git issue. My config is based on clj-kondo docs - seemed to work but have not tested extensively at all.