[PATCH] Add Emacs' imenu support in notmuch-show and notmuch-search

Damien Cassou damien at cassou.me
Sat Jun 10 14:49:13 PDT 2017

David Bremner <david at tethera.net> writes: 
> In show mode the chosen imenu index function seems less useful 
> to me; it treats indentation level as significant, so in threads 
> with many levels of reply, one has to type many periods. It's 
> also not clear to me that the information on the header line is 
> very helpful for navigation, even without indentation. 
I guess you are using the default imenu frontend which is both 
ugly and inefficient. I also guess few people care about adding 
imenu support to packages for this exact reason.   The counsel's 
version is quite good though (see attached screenshot). The 
indentation is respected making the imenu content a visual 
overview of the thread (and you don't have to type any periods). 
I can still get rid of indentation if you confirm you don't want 
it. For example, I understand that it would be nice to have better 
integration with the original imenu frontend (even though the 
default frontend is so bad I doubt anyone not having a better 
version ever uses imenu at all). You also say the information on 
the header line is not very helpful. Do you have any other 
suggestion? I'm open to trying several different alternatives and 
see what people prefer. 


Damien Cassou

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill

More information about the notmuch mailing list