THis patch adds out-of-the-box fontification of makefile source code
blocks when using the package listings. As the makefile code blocks are
named =makefile= and the name of the language definition in the package
=listings= is m=make= the value (makefile "make") is added to the
variable org-latex-listings-langs.

Patch attached.

Cheers,

Rainer

-- 
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      rai...@krugs.de

Skype:      RMkrug

PGP: 0x0F52F982
From 1896502218f0e646ff3e6ca4b8fe7a3a93d11ba3 Mon Sep 17 00:00:00 2001
From: "Rainer M. Krug" <r.m.k...@gmail.com>
Date: Wed, 9 Jul 2014 09:31:42 +0200
Subject: [PATCH] Add makefile to org-latex-listings-langs

Enable out-of-the-box syntax fontification of makefile source blocks
when using LaTeX package `liatings'

* lisp/ox-latex.el (org-latex-listings-langs): add `(makefile "make")'
  to the default value of the variable org-latex-listings-langs.
---
 lisp/ox-latex.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index b6dd311..80ca341 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -778,7 +778,8 @@ into previewing problems, please consult
     (shell-script "bash")
     (gnuplot "Gnuplot")
     (ocaml "Caml") (caml "Caml")
-    (sql "SQL") (sqlite "sql"))
+    (sql "SQL") (sqlite "sql")
+    (makefile "make"))
   "Alist mapping languages to their listing language counterpart.
 The key is a symbol, the major mode symbol without the \"-mode\".
 The value is the string that should be inserted as the language
-- 
2.0.1

Attachment: pgpdwbpFqz81a.pgp
Description: PGP signature

Reply via email to