jwiegley / use-package

A use-package declaration for simplifying your .emacs
https://jwiegley.github.io/use-package
GNU General Public License v3.0
4.4k stars 259 forks source link

imenu support not working #635

Closed CSRaghunandan closed 6 years ago

CSRaghunandan commented 6 years ago

I've the following setting in my init file (setq use-package-enable-imenu-support t) and I can confirm that this feature used to work before, but maybe a recent commit broke the imenu support?

Can someone please try to reproduce this?

Thanks

nickserv commented 6 years ago

I noticed that recently, it doesn't seem to populate the imenu differently when enabled. I just get whatever I had in Emacs Lisp mode.

jwiegley commented 6 years ago

I've never used that command, so I wouldn't be surprised if it broke during the last round of refactoring.

waymondo commented 6 years ago

It still works for me. Are you enabling it before (require 'use-package)?

CSRaghunandan commented 6 years ago

@waymondo Yes, I am running (require 'use-package) before enabling imenu for use-package.

Also, which version of use-package are you running?

waymondo commented 6 years ago

@CSRaghunandan I'm on use-package-20180314.1143 via MEPLA currently.

seagle0128 commented 6 years ago

Make sure put (setq use-package-enable-imenu-support t) before (require 'use-package).

CSRaghunandan commented 6 years ago

@seagle0128 That solved the issue 👍

Closing the issue.

lrustand commented 4 weeks ago

This is still not working.

jwiegley commented 3 weeks ago

@lrustand Can you say more about your setup and the steps you are using to reproduce the failure? Since others have reported it being fixed, I just want to be sure we're comparing the same things. Thank you.

lrustand commented 3 weeks ago

Hmm, it seems it was actually working, only that the default presentation of it in imenu is extremely hard to find. I expected the entries to show up with all the other entries, but they don't. Instead there is one single entry called Packages, which you have to select and press enter to get a list of just the packages entries. This is not documented anywhere, and I would say it is highly unintuitive. It took me many hours of troubleshooting before I randomly noticed the Packages entry in the imenu list.

seagle0128 commented 3 weeks ago

Suggest to put (setq use-package-enable-imenu-support t) in early-init.el to make sure it works.

alphapapa commented 2 weeks ago

Hmm, it seems it was actually working, only that the default presentation of it in imenu is extremely hard to find. I expected the entries to show up with all the other entries, but they don't. Instead there is one single entry called Packages, which you have to select and press enter to get a list of just the packages entries. This is not documented anywhere, and I would say it is highly unintuitive. It took me many hours of troubleshooting before I randomly noticed the Packages entry in the imenu list.

@lrustand Using a tool like consult-imenu, which presents the entries in a flattened manner, will likely help with that. Imenu's inherent hierarchical structure is less convenient for completion and scanning.