From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: SOLVED: source code block language 'makefile' and listings package Date: Tue, 08 Jul 2014 06:48:01 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59665) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4YZ4-0001B1-EG for emacs-orgmode@gnu.org; Tue, 08 Jul 2014 12:48:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X4YYx-00085L-W2 for emacs-orgmode@gnu.org; Tue, 08 Jul 2014 12:48:22 -0400 Received: from gproxy5-pub.mail.unifiedlayer.com ([67.222.38.55]:56647) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1X4YYx-00084S-Nm for emacs-orgmode@gnu.org; Tue, 08 Jul 2014 12:48:15 -0400 In-Reply-To: (Rainer M. Krug's message of "Tue, 08 Jul 2014 11:51:18 +0200") 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: Rainer M Krug Cc: emacs-orgmode@gnu.org Aloha Rainer, Rainer M Krug 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