[Org] Some default settings for the listings package

This commit is contained in:
Daniel - 2018-09-08 13:16:20 +02:00
parent 473ac32147
commit acd3962f4c
Signed by: dbo
GPG Key ID: 4F63DB96D45AA9C6
1 changed files with 15 additions and 2 deletions

View File

@ -889,8 +889,21 @@ This is done only if the value of this variable is not null."
,(concat "\\documentclass{scrartcl}\n"
"[DEFAULT-PACKAGES]"
"[PACKAGES]"
;; XXX: this needs some additional
;; settings for the listings package
"
\\lstset{
basewidth=0.5em,
keywordstyle=\\bfseries,
basicstyle=\\sffamily,
mathescape=true,
texcl=true,
commentstyle={\\itshape},
columns=fullflexible,
frame=tb,
showspaces=false,
showtabs=false,
showstringspaces=false,
}
"
"[EXTRA]\n")
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")