Skip to content

Apheleia 3.2

Compare
Choose a tag to compare
@raxod502 raxod502 released this 25 Feb 19:33
· 122 commits to main since this release

Features

  • You can use apheleia-inhibit as a file-local variable to disable Apheleia turning on automatically for a file or directory. You can also use apheleia-inhibit-functions to configure custom logic to prevent Apheleia from turning on automatically under certain circumstances, without needing to adjust file-local variables. See #134 and #138.
  • apheleia-mode lighter is now customizable (#143).

Changes

  • shfmt is no longer enabled by default in order to prevent corruption of zsh scripts. Re-enabling shfmt in a future release is intended, but depends on further implementation work in Apheleia to only enable it for supported shells.

Enhancements

  • Emacs 29's tree-sitter-based major modes have been added to apheleia-mode-alist (#145, #148, [#151], [#155]).

Bugs fixed

  • If a formatter exited with a zero exit code when being killed by a signal (even though that is really weird behavior and arguably a bug in the formatter), then if a file was saved multiple times in quick succession, its contents could be erased and replaced with an error message from the formatter. This has been fixed. See #131 for more details.
  • Npx commands in apheleia-formatters are not overwritten when expanding binary path to node_modules directory (#152).
  • Error is no longer reported when the first element of a command is an evaluable form rather than a literal string ([#156]).

Formatters