Fork me on GitHub
#cider
<
2019-05-21
>
tianshu10:05:13

is there a feature to remove current namespace?

tianshu10:05:36

the use case is when I have required the wrong namespace but with the alias name I want to use latter. If I change the namespace, do reload an error will raise for alias already exist.

bozhidar10:05:31

@doglooksgood There’s no such feature, but we can add something similar.

bozhidar10:05:54

I guess most people currently simply manipulate the ns state manually to address this.

jumar10:05:34

You can use remove-ns or ns-unalias

1
bozhidar10:05:21

> If I change the namespace, do reload an error will raise for alias already exist.

bozhidar10:05:35

I think there won’t be a problem if you use cider-ns-refresh.

bozhidar10:05:55

(that uses tools.namespace internally)

tianshu11:05:34

currently I use C-c M-: to execute (remove-ns xxxx)

tianshu12:05:42

Is there a document on how to develop emacs lisp with cider's api? want write some elisp to provide some tools with mount and hugsql.

tianshu12:05:04

want to know how to use cider to execute clojure code in elisp?

bozhidar13:05:41

@doglooksgood There’s no real guide, but writing something on the subject has been on my mind for quite a while.

bozhidar13:05:12

Generally most people simply need cider-interactive-eval.

bozhidar13:05:34

(assuming you want to wrap some clojure code into an interactive command you plan to run from source buffers)

tianshu13:05:56

I may want a function to send code to repl and provide a callback for response. also need a hook run after C-c C-k.

vemv17:05:27

can I tweak or turn off the :cljs coloring? (for me yellow == comment)