This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-01-10
Channels
- # announcements (4)
- # babashka (40)
- # beginners (39)
- # calva (16)
- # cljdoc (1)
- # cljs-dev (8)
- # clojure (72)
- # clojure-europe (10)
- # clojure-losangeles (1)
- # clojure-nl (4)
- # clojure-spec (9)
- # clojure-uk (12)
- # clojurescript (16)
- # community-development (15)
- # conjure (5)
- # cursive (5)
- # datomic (26)
- # eastwood (1)
- # emacs (7)
- # events (1)
- # figwheel-main (15)
- # fulcro (27)
- # graphql (7)
- # gratitude (4)
- # introduce-yourself (1)
- # malli (4)
- # meander (4)
- # off-topic (2)
- # other-languages (13)
- # polylith (7)
- # reagent (5)
- # reitit (5)
- # shadow-cljs (27)
- # spacemacs (4)
- # sql (3)
- # tools-deps (6)
- # xtdb (13)
Hey. Is there a way to execute a custom clojure function in spacemacs? I'd like to execute a function and take the current namespace name as an argument.
A Clojure function can be called when using cider-refresh
, for example to stop and start component service
https://practical.li/spacemacs/clojure-repl/component-lifecycle.html#configure-cider-refresh-to-use-component-lifecycle
I am unsure if there is a general way to call Clojure functions from Emacs lisp
I have a function (from @_seancorfield) that cleans whole namespace from all of the variables so that it would be fresh again. So I wanted to call it using a key combination
It seems cider-insert-in-repl
takes a string argument that contains a Clojure function, which is then run in the REPL (I haven't tried this).
So you could add a elisp function to dotspacemacs/user-config that calls the Clojure function you want
Asking in #cider may provided other suggestions