I am using lstlisting
package in LaTeX-mode. Sometimes I have a $ symbol inside the code. Emacs treats it as the beginning of formula. And the rest of the document becomes ugly:
In verbatim mode it renders special symbols correctly:
How to make it render lslisting as verbatim?
Add "lstlisting"
to LaTeX-verbatim-environments
(using M-x customize-variable
) and reopen your file.
LaTeX-verbatim-environments is a variable defined in `latex.el'.
Its value is ("verbatim" "verbatim*" "lstlisting")
Original value was ("verbatim" "verbatim*")
Documentation:
Verbatim environments.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With