mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-12-11 09:22:02 +01:00
01421acf78
Signed-off-by: magic_rb <magic_rb@redalder.org>
19 lines
514 B
Org Mode
19 lines
514 B
Org Mode
:PROPERTIES:
|
|
:header-args:emacs-lisp: :comments link :results none
|
|
:ID: bb6cd4f4-5245-40a1-a140-89703067ad5c
|
|
:END:
|
|
#+title: Format All
|
|
#+filetags: emacs-load
|
|
#+begin_src emacs-lisp
|
|
(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))
|
|
#+end_src
|
|
|