How to navigate to erlang function in emacs by name?

emacs, erlang

Solution

You could use M-x imenu directly—it works only within the current file, though. I bind it to Super-i in my `.emacs` with:

(global-set-key [(super ?i)] 'imenu)

Problem

I use emacs-mode. How can I navigate to function definition by name? Emacs has "imenu-add-to-menubar" command but it's not convenient way because I have to select function name from menu. Thank you!

Original source