Fork me on GitHub
#spacemacs
<
2022-06-28
>
Martynas Maciulevičius06:06:22

Is there a way to run my own code snippet for the current namespace? I want to take the namespace (could be the namespace name or the source itself) and then send it to my own function that I could define in the .spacemacs. I want to do this because I want to use remove-ns and maybe some other functions.

Martynas Maciulevičius06:06:08

This worked but it could probable be done in a better way:

(defun mm-cider-remove-ns ()
    (interactive)
    (cider-interactive-eval "(remove-ns (symbol (str *ns*)))"))
  (spacemacs/set-leader-keys "-nr" 'mm-cider-remove-ns)