On 2014-09-03 21:00, Thorsten Jolitz <tjol...@gmail.com> writes: >> Maybe I should look into doing this the navi way. Assume you want to >> reach an entry with "foobar" in its title, but you don't know at what >> level this entry is. How would you do it? > > As I wrote in my last mail, I think outshine-imenu (using idomenu, you > have to install that package for ido-style completion) does exacly what > you want - offer all file headers with smart completion, so you only > need to type 'foo' or so to get the "foobar" headline. Typing RET then > moves point to the headline.
I looked a little deeper into this, and I found that the code is supposed to work even when idomenu is not installed. Unfortunately it does not: the function 'imenu-choose-buffer-index' does not seem to exist until imenu is launched once. Maybe a "require" is missing? Things work well once I've launched imenu manually (the integration with helm is even automatic). There is one small additional issue, though: the entry targetted remain folded. Is there a way to (automatically) unfold it? Thanks, Alan -- OpenPGP Key ID : 040D0A3B4ED2E5C7
signature.asc
Description: PGP signature