1
0
Fork 0

fix(emacs): enable slash input in non-math mode

Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
Lucas Sta Maria 2024-10-11 17:07:02 -04:00
parent cf2b178ae1
commit e3c591e59d
No known key found for this signature in database
GPG key ID: F07FB16A826E3B47

View file

@ -60,8 +60,9 @@
(defun math-insert-frac () (defun math-insert-frac ()
"Insert a fraction if in math mode." "Insert a fraction if in math mode."
(interactive) (interactive)
(when (texmathp) (if (texmathp)
(insert-frac))) (insert-frac)
(insert-raw-slash)))
(defun insert-frac () (defun insert-frac ()
"Ensure math mode and then insert a fraction." "Ensure math mode and then insert a fraction."