[HN Gopher] Show HN: Erlmacs - a script to update your .emacs fi...
       ___________________________________________________________________
        
       Show HN: Erlmacs - a script to update your .emacs file for Erlang
       development
        
       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.
        
       Author : dlachausse
       Score  : 22 points
       Date   : 2023-09-10 16:46 UTC (6 hours ago)
        
 (HTM) web link (github.com)
 (TXT) w3m dump (github.com)
        
       | st3fan wrote:
       | Why not simply post a .el file that people can load or copy paste
       | into their existing config?
        
         | dlachausse wrote:
         | The issue is that depending on your OS and installation method,
         | the paths you need to use for your configuration file can vary
         | greatly. This automates finding those paths and writing them to
         | the configuration file.
        
       | philsnow wrote:
       | Changing config files is tricky (this wouldn't work as written
       | for me because like many many people, I keep my emacs init in
       | ~/.emacs.d/init.el instead of ~/.emacs). Why not do something
       | like this?                 (eval (car          (read-from-string
       | (format "(progn %s)"                   (shell-command-to-string
       | "/path/to/erlmacs elisp")))))
       | 
       | 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).
       | 
       | 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.
        
         | dlachausse wrote:
         | Good point! The next version should support other config file
         | locations. This is something of a minimum viable solution to a
         | problem I wanted to solve for myself.
         | 
         | I'm definitely open to feature requests and suggestions.
        
       ___________________________________________________________________
       (page generated 2023-09-10 23:00 UTC)