emacs: Disable python-mode and just use builtin Python support
This commit is contained in:
parent
71530aa3e6
commit
4d364c87bb
1 changed files with 10 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue