This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-06-28
Channels
- # announcements (9)
- # aws (2)
- # beginners (45)
- # biff (2)
- # calva (20)
- # cider (4)
- # cljdoc (15)
- # cljs-dev (9)
- # clojure (102)
- # clojure-austin (14)
- # clojure-europe (39)
- # clojure-france (3)
- # clojure-germany (1)
- # clojure-norway (39)
- # clojure-spec (1)
- # clojure-uk (3)
- # conjure (8)
- # cursive (6)
- # datahike (3)
- # datomic (8)
- # emacs (28)
- # events (1)
- # holy-lambda (6)
- # hyperfiddle (13)
- # jobs (11)
- # keechma (2)
- # lsp (4)
- # malli (33)
- # nbb (36)
- # off-topic (52)
- # pathom (5)
- # pedestal (2)
- # portal (1)
- # reagent (2)
- # reitit (3)
- # remote-jobs (1)
- # scittle (1)
- # spacemacs (2)
- # xtdb (5)
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.
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)