Pergunta

I am writing a .hs (haskell) file through emacs and loading it with 'load file' (C-c C-l).

For testing the functions, I switchover to Main Prompt Window (C-x o), where I need to type complete function name. I am sure there must be a way to get the function names through auto-completion, but I don't know how to do it and could not find?

Please guide.

Foi útil?

Solução

This answer found in Jedai's comment on the question.

When in Main prompt window, if you require, say function "doubleMe" , just type initial 2-3 letters like "dou" and then press Meta-/ (the meta key or Alt key and slash together); you will find the auto-completed function name. In this case - "doubleMe".

If you have multiple function names or other words in the buffer and around; which starts with "dou" then keep on pressing Meta-/ , till you find the desired name.

Note that this feature works in all windows.

Outras dicas

Yes. I use imenu.el

For C language there are many possibilities.

It is expected that imenu shoud work for all possible languages.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top