With the PHP-mode that's shipped with Emacs, suppose I have the following PHP function:
public function foo()
{
print "bar";
}
Imenu will list the foo
in all methods and public methods.
Other packages like Helm and Ido use the same Imenu, which causes my functions to be double listed. When I call helm-imenu
that uses the imenu source, I see my functions double listed.
It gets listed in helm-imenu as All methods / foo
and public methods / foo
. I see the same in ido-imenu.
I would like to reduce that to only the methods get listed once, instead double. And in Emacs nearly everything is scriptable, right?
To make it more clear what I'm meaning, a screenshot:
Sometimes it makes it very confusing for me, when navigating around in the codebase.
So any suggestion how I could handle this?