aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorOscar Najera <hi@oscarnajera.com>2023-03-03 11:44:40 +0100
committerOscar Najera <hi@oscarnajera.com>2023-03-03 12:00:51 +0100
commit8210754a810ab8b486010f660dc5e62699937e0f (patch)
tree899bfed03c91a4f027a7c7bbf69c6afd658a34bd /config
parent601c945e690038b14f922807ab909f57c3a356fb (diff)
downloaddotfiles-8210754a810ab8b486010f660dc5e62699937e0f.tar.gz
dotfiles-8210754a810ab8b486010f660dc5e62699937e0f.tar.bz2
dotfiles-8210754a810ab8b486010f660dc5e62699937e0f.zip
Use pg_format
Diffstat (limited to 'config')
-rw-r--r--config/doom/config.org13
1 files changed, 13 insertions, 0 deletions
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