From e3c591e59d7e3c619cc613d87970a327a5d8deee Mon Sep 17 00:00:00 2001 From: Lucas Sta Maria Date: Fri, 11 Oct 2024 17:07:02 -0400 Subject: [PATCH] fix(emacs): enable slash input in non-math mode Signed-off-by: Lucas Sta Maria --- .emacs.d/include/latexconfig.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.emacs.d/include/latexconfig.el b/.emacs.d/include/latexconfig.el index ed35a71..55a5927 100644 --- a/.emacs.d/include/latexconfig.el +++ b/.emacs.d/include/latexconfig.el @@ -60,8 +60,9 @@ (defun math-insert-frac () "Insert a fraction if in math mode." (interactive) - (when (texmathp) - (insert-frac))) + (if (texmathp) + (insert-frac) + (insert-raw-slash))) (defun insert-frac () "Ensure math mode and then insert a fraction."