emacs: Disable prettier-global-mode and enable only for web stuff

This commit is contained in:
Erwin Boskma 2023-06-23 14:11:44 +02:00
parent b7f40b7bf0
commit ecc5bc4f5d
Signed by: erwin
SSH key fingerprint: SHA256:3F6Cm6I3erRqlBwEghZWAQl6eS5WrGTX1Vs/Evec1lQ

View file

@ -1092,7 +1092,7 @@ Prettier has my preference for formatting JavaScript and TypeScript
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package prettier (use-package prettier
:config :config
(global-prettier-mode)) (setq prettier-enabled-parsers (css html json markdown scss svelte toml typescript vue)))
#+end_src #+end_src
TypeScript stuff TypeScript stuff
@ -1541,8 +1541,10 @@ Python
#+end_src #+end_src
#+begin_src emacs-lisp #+begin_src emacs-lisp
(add-hook 'python-mode-hook 'eglot-ensure) (use-package python
(add-hook 'python-ts-mode-hook 'eglot-ensure) :ensure nil
:hook (python-base-mode . eglot-ensure)
:init (setq python-indent-guess-indent-offset nil))
#+end_src #+end_src