mirror of
https://github.com/ellmau/nixos.git
synced 2025-12-19 09:29:36 +01:00
Add apheleia to emacs
This commit is contained in:
parent
d44a40605f
commit
9bfe4c0ae5
@ -577,6 +577,31 @@
|
|||||||
"/=" ":::" ">=>" "->>" "<=>" "<=<" "<->"))
|
"/=" ":::" ">=>" "->>" "<=>" "<=<" "<->"))
|
||||||
(global-ligature-mode t))
|
(global-ligature-mode t))
|
||||||
|
|
||||||
|
;; apheleia
|
||||||
|
(use-package apheleia
|
||||||
|
:defer t
|
||||||
|
:diminish apheleia-mode
|
||||||
|
:custom
|
||||||
|
(apheleia-formatters
|
||||||
|
`((alejandra "alejandra")
|
||||||
|
(black "black" "-")
|
||||||
|
(brittany "brittany")
|
||||||
|
(clang-format "clang-format")
|
||||||
|
(fish-indent . ("fish_indent"))
|
||||||
|
(gofmt . ("gofmt"))
|
||||||
|
(google-java-format . ("google-java-format" "-"))
|
||||||
|
(isort . ("isort" "-"))
|
||||||
|
(latexindent . ("latexindent" "--logfile=/dev/null"))
|
||||||
|
(mix-format . ("mix" "format" "-"))
|
||||||
|
(nixfmt . ("nixfmt"))
|
||||||
|
(prettier . (,die-orga/executables/prettier "--stdin-filepath" filepath))
|
||||||
|
(rustfmt . ("rustfmt" "--quiet" "--emit" "stdout"))
|
||||||
|
(terraform . ("terraform" "fmt" "-"))))
|
||||||
|
:preface
|
||||||
|
(diminish 'apheleia-mode)
|
||||||
|
:init
|
||||||
|
(apheleia-global-mode t))
|
||||||
|
|
||||||
(custom-set-faces
|
(custom-set-faces
|
||||||
;; custom-set-faces was added by Custom.
|
;; custom-set-faces was added by Custom.
|
||||||
;; If you edit it by hand, you could mess it up, so be careful.
|
;; If you edit it by hand, you could mess it up, so be careful.
|
||||||
|
|||||||
@ -42,6 +42,7 @@ with lib; let
|
|||||||
alert
|
alert
|
||||||
all-the-icons
|
all-the-icons
|
||||||
all-the-icons-dired
|
all-the-icons-dired
|
||||||
|
apheleia
|
||||||
beacon
|
beacon
|
||||||
bln-mode
|
bln-mode
|
||||||
cargo-mode
|
cargo-mode
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user