diff options
author | Alan Pearce | 2020-10-24 18:45:51 +0200 |
---|---|---|
committer | Alan Pearce | 2020-10-24 18:45:51 +0200 |
commit | 3279bb50a2e6c5a9f2bc1e4035d2a5da509714d7 (patch) | |
tree | 1eddd1da403e4b0f5bf41e7a4028c6ee5dc33d35 /user/emacs | |
parent | 1f5a6f18fa58bfd7e4251b560ce07887177100ae (diff) | |
download | nixfiles-3279bb50a2e6c5a9f2bc1e4035d2a5da509714d7.tar.lz nixfiles-3279bb50a2e6c5a9f2bc1e4035d2a5da509714d7.tar.zst nixfiles-3279bb50a2e6c5a9f2bc1e4035d2a5da509714d7.zip |
Emacs: replace prettier-js and sqlformat with format-all
Diffstat (limited to 'user/emacs')
-rw-r--r-- | user/emacs/init.el | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el index b05e2a2e..d1d783c1 100644 --- a/user/emacs/init.el +++ b/user/emacs/init.el @@ -935,16 +935,20 @@ _p_rev _u_pper _=_: upper/lower _r_esolve ;;;; Reformat on save -(use-package prettier-js - :ghook ('(javascript-mode-hook typescript-mode-hook) #'prettier-js-mode t) - :config (progn - (setq prettier-js-show-errors 'echo))) - -(use-package sqlformat - :ghook ('sql-mode-hook #'sqlformat-on-save-mode) - :config (progn - (setq sqlformat-command 'pgformatter - sqlformat-args '("-s2")))) +(use-package format-all + :ghook ('(css-mode-hook + dockerfile-mode-hook + emacs-lisp-mode-hook + javascript-mode-hook + json-mode-hook + markdown-mode-hook + scss-mode-hook + sgml-mode-hook + sh-mode-hook + sql-mode-hook + toml-mode-hook + typescript-mode-hook + yaml-mode-hook))) ;;; E-mail |