Show HN: Erlmacs – a script to update your .emacs file for Erlang development (github.com)
erlmacs automatically configures and updates your .emacs file with support for the emacs mode that is included with Erlang/OTP. It frees you from having to locate the installation directory of Erlang/OTP and its bundled emacs mode.
It is an escript that only depends upon Erlang/OTP and Emacs.
Note: There is not much in the way of error checking at this moment, but it does make a backup of your .emacs files before any destructive operations.
9 comments
[ 4.0 ms ] story [ 26.1 ms ] threadPro: you won't have to remember to call `erlmacs install` again when you periodically do `asdf install erlang latest`. Con: the version of erlang that gets `(erlang-start)` called is determined by your environment / the nearest .tool-versions file when you first invoke emacs.
I’m definitely open to feature requests and suggestions.
For now I just pushed a new v1.1.0 release that automatically detects and supports ~/.emacs.el and ~/.emacs.d/init.el in addition to ~/.emacs as configuration file locations.
That should fix this problem for most people for now although I agree that your suggestion is probably more robust overall.