diff options
Diffstat (limited to 'emacs/.emacs.d/init.el')
-rw-r--r-- | emacs/.emacs.d/init.el | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index c50b946..75e75dd 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -133,6 +133,17 @@ (use-package company-lsp :commands company-lsp) +;; --- AUTO-FORMAT ON SAVE --- +(use-package prettier-js + :config + (setq prettier-js-args + '("--trailing-comma" "all" + "--use-tabs" "true" + "--print-width" "110" + "--arrow-parens" "avoid" + "--end-of-line" "auto")) + :hook (typescript-mode . prettier-js-mode)) + ;; --- THEME --- (use-package doom-themes :config |