Show Rum's defc[s,c] on Emacs Imenu

Tienson Qin2018/08/24

Problem

https://github.com/tonsky/rum[Rum]’s defc, defcs or defcc are not listed by Emacs Imenu, the reason is that clojure-mode regex doesn’t support it.

Solution

I hard code the clojure-mode.el to append [cs] to def, you can see here:
https://gist.github.com/tiensonqin/8af98e596557e6ba959219d2ded8eb7f#file-clojure-mode-el-L712.

It’s ugly, but it saves a lot of time.

5