add TeX mode enabling fix for emacs 28+

This commit is contained in:
TEC 2020-06-30 03:14:45 +08:00
parent c2e093abf2
commit 172d6db22c
1 changed files with 6 additions and 0 deletions

View File

@ -5546,6 +5546,12 @@ Let's face it. Being evil is fun, let's take it as far as we can.
(use-package! evil-tex
:hook (LaTeX-mode . evil-tex-mode))
#+END_SRC
*** Fixes
In case of Emacs28,
#+BEGIN_SRC emacs-lisp
(when EMACS28+
(add-hook 'latex-mode-hook #'TeX-latex-mode))
#+END_SRC
** Python
Since I'm using =mypyls=, as suggested in [[file:~/.emacs.d/modules/lang/python/README.org::*Language Server Protocol Support][:lang python LSP support]] I'll tweak the
priority of =mypyls=