Envoyé de mon iPhone

> Le 8 juil. 2014 à 14:40, Nick Dokos <ndo...@gmail.com> a écrit :
> 
> Rainer M Krug <rai...@krugs.de> 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 

> -- 
> Nick
> 
> 

Reply via email to