fix(emacs): enable slash input in non-math mode
Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
parent
cf2b178ae1
commit
e3c591e59d
1 changed files with 3 additions and 2 deletions
|
@ -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."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue