emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] SOLVED: source code block language 'makefile' and listings packa


From: Thomas S. Dye
Subject: Re: [O] SOLVED: source code block language 'makefile' and listings package
Date: Tue, 08 Jul 2014 06:48:01 -1000

Aloha Rainer,

Rainer M Krug <address@hidden> writes:

>> You can configure the listings package with the commands
>> \lstnewenvironment and \lstset.  There is a worked example here:
>>
>> http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-12-4
>
> 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") 
> |         (clojure "Lisp") 
> |         (c "C") 
> |         (cc "C++") 
> |         (fortran "fortran") 
> |         (perl "Perl") 
> |         (cperl "Perl")
> |         (python "Python")
> |         (ruby "Ruby")
> |         (html "HTML")
> |         (xml "XML")
> |         (tex "TeX")
> |         (latex "[LaTeX]TeX")
> |         (shell-script "bash")
> |         (gnuplot "Gnuplot")
> |         (ocaml "Caml")
> |         (caml "Caml")
> |         (sql "SQL")
> |         (sqlite "sql")
> |         (makefile "make")))
> `----
>
> Works perfectly.

Nice!

All the best,
Tom

-- 
Thomas S. Dye
http://www.tsdye.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]