From 8210754a810ab8b486010f660dc5e62699937e0f Mon Sep 17 00:00:00 2001 From: Oscar Najera Date: Fri, 3 Mar 2023 11:44:40 +0100 Subject: Use pg_format --- config/doom/config.org | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/config/doom/config.org b/config/doom/config.org index 6caedcb..6d54f72 100644 --- a/config/doom/config.org +++ b/config/doom/config.org @@ -526,6 +526,19 @@ Emacs mode for managing ledger text files #+begin_src emacs-lisp :tangle "packages.el" (package! emacsql-psql) #+end_src + +#+begin_src emacs-lisp +(after! format-all + (define-format-all-formatter sqlformat + (:executable "pg_format") + (:install) + (:modes sql-mode) + (:format + (format-all--buffer-easy + executable + "-s2" "-g" "-U2" + "-")))) +#+end_src ** WEB #+begin_src emacs-lisp (after! web-mode -- cgit v1.2.3