mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-13 13:13:35 -05:00
feat(format): add :lang racket formatter
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
:dot ".")
|
||||
(set-rotate-patterns! 'racket-mode
|
||||
:symbols '(("#true" "#false")))
|
||||
(set-formatter! 'raco-fmt '("raco" "fmt") :modes '(racket-mode))
|
||||
|
||||
(add-hook! 'racket-mode-hook
|
||||
#'rainbow-delimiters-mode
|
||||
|
@@ -9,3 +9,8 @@
|
||||
|
||||
(unless (executable-find "raco")
|
||||
(warn! "Could not find raco executable; commands for install packages and build libraries will not work."))
|
||||
|
||||
(when (modulep! :editor format)
|
||||
(unless (and (executable-find "raco")
|
||||
(eq 0 (call-process-shell-command "raco fmt --help" nil nil)))
|
||||
(warn! "Couldn't find raco fmt. Formatting will be disabled.")))
|
||||
|
Reference in New Issue
Block a user