Denis Bitouzé writes: > Otherwise, all the options specified by `\lstset` can be applied as an > option of the `lstlisting` environment: > > ┌──── > │ \begin{lstlisting}[language=⟨language⟩,...] > └──── This should be the safest and the least verbose. I implemented the suggestion in the attached patch. Let me know if it works for you.