From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: SOLVED: source code block language 'makefile' and listings package Date: Tue, 08 Jul 2014 08:40:41 -0400 Message-ID: <87fvicaura.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57948) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4Uhm-0006xW-Oa for emacs-orgmode@gnu.org; Tue, 08 Jul 2014 08:41:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X4Uhf-0000aG-Px for emacs-orgmode@gnu.org; Tue, 08 Jul 2014 08:41:06 -0400 Received: from plane.gmane.org ([80.91.229.3]:47367) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X4Uhf-0000a2-JF for emacs-orgmode@gnu.org; Tue, 08 Jul 2014 08:40:59 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1X4Uhc-00087Z-4K for emacs-orgmode@gnu.org; Tue, 08 Jul 2014 14:40:56 +0200 Received: from pool-98-110-160-12.bstnma.fios.verizon.net ([98.110.160.12]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Jul 2014 14:40:56 +0200 Received: from ndokos by pool-98-110-160-12.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 08 Jul 2014 14:40:56 +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: emacs-orgmode@gnu.org Rainer M Krug 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