From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: org-latex-custom-lang-environments Date: Tue, 19 May 2015 17:29:00 +0200 Message-ID: <87mw10pow3.fsf@gmx.us> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54555) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YujSD-0003V5-76 for emacs-orgmode@gnu.org; Tue, 19 May 2015 11:29:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YujS8-000636-Sm for emacs-orgmode@gnu.org; Tue, 19 May 2015 11:29:13 -0400 Received: from plane.gmane.org ([80.91.229.3]:39765) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YujS8-000631-Mm for emacs-orgmode@gnu.org; Tue, 19 May 2015 11:29:08 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YujS6-0000SR-R0 for emacs-orgmode@gnu.org; Tue, 19 May 2015 17:29:06 +0200 Received: from 46.166.190.181 ([46.166.190.181]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 May 2015 17:29:06 +0200 Received: from rasmus by 46.166.190.181 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 19 May 2015 17:29:06 +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 Hi Jake, Jacob Gerlach writes: > I thought I had successfully used this variable, but after restarting > emacs, I can no longer reproduce the documented behavior. > > Given the following org file: > ---------- > #+BEGIN_SRC sh :exports code > echo "Hello" > #+END_SRC > > # Local Variables: > # org-latex-listings: t > # org-latex-custom-lang-environments: (quote ((sh "myverbatim"))) > # END: > ---------- If I explicitly eval: (org-babel-do-load-languages 'org-babel-load-languages '((sh . t))) (setq org-latex-custom-lang-environments '((sh "myverbatim")) org-latex-listings t) And export #+BEGIN_SRC sh :exports code echo "Hello" #+END_SRC I get the the block wrapped in the desired environment. I don't know why your local variables are ignored, but it seems the result is the same when using the Org-specific BIND keyword... Rasmus -- And I faced endless streams of vendor-approved Ikea furniture. . .