diff --git a/smartparens-latex.el b/smartparens-latex.el index 339f2d20..43341db7 100644 --- a/smartparens-latex.el +++ b/smartparens-latex.el @@ -100,7 +100,8 @@ ID, ACTION, CONTEXT." :unless '(sp-latex-point-after-backslash sp-in-math-p)) ;; math modes, yay. The :actions are provided automatically if ;; these pairs do not have global definitions. - (sp-local-pair "$" "$") + (sp-local-pair "$" "$" + :unless '(sp-latex-point-after-backslash)) (sp-local-pair "\\[" "\\]" :unless '(sp-latex-point-after-backslash))