Envoyé de mon iPhone
Rainer M Krug <address@hidden> writes:Much simpler then that: I simply changed the variable
org-latex-listings-langs to include makefile:
,----
| (setq org-latex-listings-langs
| '((emacs-lisp "Lisp")
| (lisp "Lisp")
... | (sql "SQL")
| (sqlite "sql")
| (makefile "make")))
`----
Works perfectly.
Now if I just could figure out on how I can simply *add* the makefile to
the list without defining it completely new..
Two methods:this one is pretty much generic lisp:--8<---------------cut here---------------start------------->8---(setq org-latex-listings-langs (append org-latex-listings-langs '((makefile "make"))))--8<---------------cut here---------------end--------------->8---A slightly simpler, more idiomatic emacs-lisp way:--8<---------------cut here---------------start------------->8---(add-to-list 'org-latex-listings-langs '(makefile "make"))--8<---------------cut here---------------end--------------->8---
Thanks - learned something more.
Cheers,
Rainer |