You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the formatting fails, an <original_name>-emacs-elixir-format.ex file is left in the same directory as the file for which formatting was attempted. For whatever reason, this does not appear to happen when elixir-format is invoked manually.
The text was updated successfully, but these errors were encountered:
But that was before I switched to Emacs 29 with eglot. It has a built-in format function that calls the language server and it is what is working best for me (and faster). Currently, after setting up eglot with elixir-ls, all I do is:
I am leaving this here for references only and will try to take a look at the format code for solving this anyway.
Even if I am not successful, I will probably add a "Tips and tricks" session for configuring other tools and extensions to make life with Elixir in Emacs better.
I'm surprised this hasn't been reported before as I've seen coworkers gripe about this.
When using
before-save-hook
to runelixir-format
, like so:If the formatting fails, an
<original_name>-emacs-elixir-format.ex
file is left in the same directory as the file for which formatting was attempted. For whatever reason, this does not appear to happen whenelixir-format
is invoked manually.The text was updated successfully, but these errors were encountered: