Added pgformatter as default formatter
This commit is contained in:
parent
0b3fbeb3d9
commit
7e4ae766ca
|
@ -4,6 +4,8 @@
|
||||||
|
|
||||||
(setq fancy-splash-image (concat doom-user-dir "./.resources/doom.png"))
|
(setq fancy-splash-image (concat doom-user-dir "./.resources/doom.png"))
|
||||||
|
|
||||||
|
(setq-hook! 'sql-mode-hook +format-with 'pgformatter)
|
||||||
|
|
||||||
(setq ispell-dictionary "en"
|
(setq ispell-dictionary "en"
|
||||||
ispell-personal-dictionary "~/org/.ispell.en.pws")
|
ispell-personal-dictionary "~/org/.ispell.en.pws")
|
||||||
|
|
||||||
|
|
|
@ -319,6 +319,14 @@ snippets ; my elves. They type so I don't have to
|
||||||
;;word-wrap ; soft wrapping with language-aware indent
|
;;word-wrap ; soft wrapping with language-aware indent
|
||||||
#+end_src
|
#+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
|
** Emacs
|
||||||
https://github.com/doomemacs/doomemacs/tree/master/modules/emacs
|
https://github.com/doomemacs/doomemacs/tree/master/modules/emacs
|
||||||
#+name:doom-emacs
|
#+name:doom-emacs
|
||||||
|
|
Loading…
Reference in New Issue
Block a user