Skip to content

Commit

Permalink
Don't invoke LaTeX-environment-or-macro after a backslash
Browse files Browse the repository at this point in the history
  • Loading branch information
PythonNut committed Jul 22, 2021
1 parent 8deba35 commit 5b40534
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/config-tex.el
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,10 @@ matching string."

(define-key TeX-mode-map (kbd ";")
`(menu-item "" LaTeX-environment-or-macro
:filter ,(lambda (cmd) (unless (my/LaTeX-verbatimish-p) cmd))))
:filter ,(lambda (cmd)
(unless (or (my/LaTeX-verbatimish-p)
(looking-back (rx "\\")))
cmd))))

(el-patch-defun LaTeX-indent-calculate (&optional force-type)
"Return the indentation of a line of LaTeX source.
Expand Down

0 comments on commit 5b40534

Please sign in to comment.