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.
Pro: 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.
Change erlmacs to just emit the elisp when you call it with 'elisp', then add the above snippet to your emacs init (or provide this setup as a elpa package).reply