Added pgformatter as default formatter

This commit is contained in:
James Patrick 2024-06-18 16:52:58 -04:00
parent 0b3fbeb3d9
commit 7e4ae766ca
No known key found for this signature in database
2 changed files with 10 additions and 0 deletions

View File

@ -4,6 +4,8 @@
(setq fancy-splash-image (concat doom-user-dir "./.resources/doom.png"))
(setq-hook! 'sql-mode-hook +format-with 'pgformatter)
(setq ispell-dictionary "en"
ispell-personal-dictionary "~/org/.ispell.en.pws")

View File

@ -319,6 +319,14 @@ snippets ; my elves. They type so I don't have to
;;word-wrap ; soft wrapping with language-aware indent
#+end_src
*** Custom Formatter
Doom uses [[https://github.com/lassik/emacs-format-all-the-code][emacs-format-all-the-code]] for its formatting. It's a great package, but I use different formatters for a couple language. At this time I'm only going to update =sql-mode= to use [[https://github.com/darold/pgFormatter][pgformatter]]. It's supported, but instead used by default.
#+begin_src emacs-lisp
(setq-hook! 'sql-mode-hook +format-with 'pgformatter)
#+end_src
** Emacs
https://github.com/doomemacs/doomemacs/tree/master/modules/emacs
#+name:doom-emacs