emacs: Add python-mode and jinja2-mode

This commit is contained in:
Erwin Boskma 2023-06-15 10:06:50 +02:00
parent fe9ac11da0
commit b2dfc4cc43
Signed by: erwin
SSH key fingerprint: SHA256:9LmFDe1C6jSrEyqxxvX8NtJBmcbB105XoqyUZF092bg

View file

@ -1126,7 +1126,8 @@ Prefer local packages from =node_modules= to global ones
web-mode-enable-current-element-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\\'")))
:hook
((html-mode css-mode web-mode) . eglot-ensure))
#+end_src
@ -1527,6 +1528,22 @@ It's better than nothing.
(use-package just-mode)
#+end_src
*** Python
Python
#+begin_src emacs-lisp
(use-package python-mode
:hook
((python-mode python-ts-mode) . eglot-ensure))
#+end_src
jinja2
#+begin_src emacs-lisp
(use-package jinja2-mode)
#+end_src
* Org
** Main org setup