From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: [PATCH] ox-latex.el: add out-of-the-box fontification for makefile source block Date: Wed, 09 Jul 2014 09:38:40 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47719) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4mSt-00050V-HX for emacs-orgmode@gnu.org; Wed, 09 Jul 2014 03:39:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X4mSo-0000NY-Dt for emacs-orgmode@gnu.org; Wed, 09 Jul 2014 03:38:55 -0400 Received: from mail-wi0-f177.google.com ([209.85.212.177]:46099) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4mSo-0000NS-84 for emacs-orgmode@gnu.org; Wed, 09 Jul 2014 03:38:50 -0400 Received: by mail-wi0-f177.google.com with SMTP id ho1so2193844wib.16 for ; Wed, 09 Jul 2014 00:38:49 -0700 (PDT) Received: from Rainers-MacBook-Pro-3.local ([2a01:e35:8baa:b070:d470:bdc5:6e11:2f17]) by mx.google.com with ESMTPSA id p3sm101573374wjw.13.2014.07.09.00.38.48 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 09 Jul 2014 00:38:48 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable 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 =3Dmakefile=3D and the name of the language definition in the package =3Dlistings=3D is m=3Dmake=3D the value (makefile "make") is added to the variable org-latex-listings-langs. Patch attached. Cheers, Rainer =2D-=20 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: Rainer@krugs.de Skype: RMkrug PGP: 0x0F52F982 --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Add-makefile-to-org-latex-listings-langs.patch Content-Transfer-Encoding: quoted-printable From=201896502218f0e646ff3e6ca4b8fe7a3a93d11ba3 Mon Sep 17 00:00:00 2001 From: "Rainer M. Krug" 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. =2D-- 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 =2D-- 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") =2D (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 =2D-=20 2.0.1 --=-=-=-- --==-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBAgAGBQJTvPGGAAoJENvXNx4PUvmCYcIIALnXLVvFUUokeRIh575fOE7w 5WJYLpGFBhLHYte+kOH3Zb3qhILdjJ7r3T1u5JT2BfTwbReFZFFz67qj6cHusL3O MB/Zvy0CblvcmS6xXNNuqcN/kwFm/tQIiCIk89dxsUtZxnRBsCatqvq30Pb6vzlK 86oECXshjMueflQ4QkKGImHR7akmfE8T2bbFw8TBswvjYIjPkswXVotgXR72XqIg MGPHNZEdr5OIYfkikGOdXC5DtTsQJoQRd1l0TeWnWe3I+BzgwlQChWQayCmDeKC6 cPXA0MK3KPhuHLF2XYSNw21pk+2s0goq3mLNlmF23PR6t1qq8C4jE5IanUmw3Qg= =3vl8 -----END PGP SIGNATURE----- --==-=-=--