spacemacs

Martynas Maciulevičius 2022-01-10T12:15:43.007800Z

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.

practicalli-johnny 2022-01-10T14:19:14.008300Z

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

Martynas Maciulevičius 2022-01-10T15:01:17.008500Z

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

practicalli-johnny 2022-01-10T15:29:08.013500Z

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