commit 997447ad81c3ea88f1b2789f4950f6d2c8da3411
parent bc3a7ff13cc167f68787961bb358f1c6fa8a28b2
Author: michaelneuper <michael@michaelneuper.com>
Date: Thu, 8 May 2025 20:57:46 +0200
enable evil-text-mode in latex src blocks
Diffstat:
1 file changed, 10 insertions(+), 0 deletions(-)
diff --git a/config.org b/config.org
@@ -381,6 +381,16 @@ Disable bold links.
(custom-set-faces!
'(org-link :weight normal)))
#+end_src
+
+Enable =evil-tex-mode= in LaTeX source blocks.
+Requires [[doom-module::lang latex]] to be enabled.
+#+begin_src emacs-lisp
+(add-hook 'org-src-mode-hook
+ (lambda ()
+ (when (string= major-mode "latex-mode")
+ (evil-tex-mode 1))))
+#+end_src
+
Setup LaTeX previews in =org-mode=.
See [[https://abode.karthinks.com/org-latex-preview/][https://abode.karthinks.com/org-latex-preview/]] for configuration.
Also https://gist.github.com/karthink/0ac48411a81459c0f3fd7557c4e817db.