Allow auto-formatting of files to be controlled ()

This commit is contained in:
RohanHart 2020-04-09 18:58:07 +12:00 committed by GitHub
parent a7c82c865c
commit 33c21ff1fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 26 additions and 6 deletions

View file

@ -48,7 +48,10 @@
(tide-hl-identifier-mode +1))
;; formats the buffer before saving
(add-hook 'before-save-hook 'tide-format-before-save)
(add-hook 'before-save-hook
(lambda ()
(when prelude-format-on-save
(tide-format-before-save))))
(setq prelude-ts-mode-hook 'prelude-ts-mode-defaults)