How do I enter erlang mode in emacs to get code highlighting, etc.? Whenever I open an erlang file nothing special happens. Do I need to change something in my .emacs file, or do I need to add a module to emacs, or something else?
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
|
||||
|
|
|
Emacs doesn't come with an Erlang mode, so you need to add one. Erlang itself appears to ship with an Emacs mode that you can use; there are instructions on installing it and using it on their website, but it comes down to just adding their folders to your load path and exec path, setting a variable, and requiring the module:
The paths might be different depending on where you installed Erlang |
|||
|
|
As of 22 March 2013, the Erlang mode is installable through the MELPA package archive. If you haven't done so already, activate MELPA by putting the following in your
Then hit |
|||
|
|