From b2dfc4cc43ed4a11564def03638a3505ba6aa237 Mon Sep 17 00:00:00 2001 From: Erwin Boskma Date: Thu, 15 Jun 2023 10:06:50 +0200 Subject: [PATCH] emacs: Add python-mode and jinja2-mode --- home-manager/modules/emacs/config.org | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/home-manager/modules/emacs/config.org b/home-manager/modules/emacs/config.org index 7e3c51f..63d8361 100644 --- a/home-manager/modules/emacs/config.org +++ b/home-manager/modules/emacs/config.org @@ -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