summary refs log tree commit diff stats
path: root/user/emacs/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'user/emacs/init.el')
-rw-r--r--user/emacs/init.el6
1 files changed, 6 insertions, 0 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 053cecb4..31e06e4d 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -919,6 +919,12 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
   :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"))))
+
 ;;; E-mail
 
 (declare-function sendmail-send-it "sendmail")