emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rainer M Krug <Rainer@krugs.de>
To: emacs-orgmode@gnu.org
Subject: [PATCH] ox-latex.el: add out-of-the-box fontification for makefile source block
Date: Wed, 09 Jul 2014 09:38:40 +0200	[thread overview]
Message-ID: <m2ha2rasn3.fsf@krugs.de> (raw)

[-- Attachment #1.1: Type: text/plain, Size: 778 bytes --]

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.



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

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-Add-makefile-to-org-latex-listings-langs.patch --]
[-- Type: text/x-patch, Size: 1134 bytes --]

From 1896502218f0e646ff3e6ca4b8fe7a3a93d11ba3 Mon Sep 17 00:00:00 2001
From: "Rainer M. Krug" <R.M.Krug@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

[-- Attachment #2: Type: application/pgp-signature, Size: 494 bytes --]

             reply	other threads:[~2014-07-09  7:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-09  7:38 Rainer M Krug [this message]
2014-07-16 12:56 ` [PATCH] ox-latex.el: add out-of-the-box fontification for makefile source block Nicolas Goaziou
2014-07-22  9:44   ` Rainer M Krug
2014-07-27 14:21     ` Bastien
2014-08-14 10:52       ` Rainer M Krug

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2ha2rasn3.fsf@krugs.de \
    --to=rainer@krugs.de \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).