emacs: Disable python-mode and just use builtin Python support

This commit is contained in:
Erwin Boskma 2023-06-19 08:16:08 +02:00
parent 71530aa3e6
commit 4d364c87bb
Signed by: erwin
SSH key fingerprint: SHA256:3F6Cm6I3erRqlBwEghZWAQl6eS5WrGTX1Vs/Evec1lQ

View file

@ -1127,7 +1127,8 @@ Prefer local packages from =node_modules= to global ones
web-mode-enable-current-column-highlight t) web-mode-enable-current-column-highlight t)
(add-to-list 'web-mode-engines-alist '(("elixir" . "\\.html.heex\\'") (add-to-list 'web-mode-engines-alist '(("elixir" . "\\.html.heex\\'")
("jinja2" . "\\.jinja2\\'"))) ("jinja2" . "\\.jinja2\\'")
("python" . "\\.pt\\'")))
:hook :hook
((html-mode css-mode web-mode) . eglot-ensure)) ((html-mode css-mode web-mode) . eglot-ensure))
#+end_src #+end_src
@ -1532,12 +1533,19 @@ It's better than nothing.
Python Python
#+begin_src emacs-lisp #+begin_src emacs-lisp :tangle no
(use-package python-mode (use-package python-mode
:hook :hook
((python-mode python-ts-mode) . eglot-ensure)) ((python-mode python-ts-mode) . eglot-ensure))
#+end_src #+end_src
#+begin_src emacs-lisp
(add-hook 'python-mode-hook 'eglot-ensure)
(add-hook 'python-ts-mode-hook 'eglot-ensure)
#+end_src
jinja2 jinja2
#+begin_src emacs-lisp #+begin_src emacs-lisp