[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] SOLVED: source code block language 'makefile' and listings packa
From: |
Nick Dokos |
Subject: |
Re: [O] SOLVED: source code block language 'makefile' and listings package |
Date: |
Tue, 08 Jul 2014 08:40:41 -0400 |
User-agent: |
Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.3.50 (gnu/linux) |
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---
--
Nick