dotfiles/emacs-lisp/format_all.org
magic_rb 01421acf78
Add fourmolu as a Haskell formatter
Signed-off-by: magic_rb <magic_rb@redalder.org>
2023-11-18 13:44:58 +01:00

514 B

Format All

  (use-package apheleia
    :straight t
    :config
    (push '(alejandra . ("alejandra"))
          apheleia-formatters)
    (push '(fourmolu . ("fourmolu" "--stdin-input-file" filepath))
          apheleia-formatters)
    (push '(nix-mode . alejandra)
          apheleia-mode-alist)
    (apheleia-global-mode +1))