Allow auto-formatting of files to be controlled (#1254)
This commit is contained in:
parent
a7c82c865c
commit
33c21ff1fe
3 changed files with 26 additions and 6 deletions
modules
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue