emacs: Disable prettier-global-mode and enable only for web stuff
This commit is contained in:
parent
b7f40b7bf0
commit
ecc5bc4f5d
1 changed files with 7 additions and 5 deletions
|
@ -1090,9 +1090,9 @@ Indent 2 spaces
|
|||
Prettier has my preference for formatting JavaScript and TypeScript
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(use-package prettier
|
||||
:config
|
||||
(global-prettier-mode))
|
||||
(use-package prettier
|
||||
:config
|
||||
(setq prettier-enabled-parsers (css html json markdown scss svelte toml typescript vue)))
|
||||
#+end_src
|
||||
|
||||
TypeScript stuff
|
||||
|
@ -1541,8 +1541,10 @@ Python
|
|||
#+end_src
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(add-hook 'python-mode-hook 'eglot-ensure)
|
||||
(add-hook 'python-ts-mode-hook 'eglot-ensure)
|
||||
(use-package python
|
||||
:ensure nil
|
||||
:hook (python-base-mode . eglot-ensure)
|
||||
:init (setq python-indent-guess-indent-offset nil))
|
||||
#+end_src
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue