How do I navigate to the erlang function in emacs by name?

I am using emacs-mode. How can I go about defining a function by name? Emacs has the command "imenu-add-to-menubar", but this is inconvenient because I have to select the function name from the menu.

Thank!

+2


source to share


3 answers


You can use M-x imenudirectly - it only works on the current file. I bind it to Super-iin mine .emacs

with:



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

      

+5


source


Distel package has erl-find-source-under-point feature tied to M-. key You can read more about working with Erlang from Emacs in my article



+4


source


Erlang is one of the many languages ​​supported by tags . The Erlang docs show that you just create a tags file with

find . -name "*.[he]rl" -print | etags -

      

Once you have the TAGS file, you simply use the M-.one that calls 'find-tag

. This allows you to jump to the function name from anywhere.

+1


source







All Articles