From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jacob Gerlach Subject: Re: org-latex-custom-lang-environments Date: Tue, 19 May 2015 11:55:49 -0400 Message-ID: References: <87mw10pow3.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40126) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yujrz-0003CL-98 for emacs-orgmode@gnu.org; Tue, 19 May 2015 11:55:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yujry-00034k-Dz for emacs-orgmode@gnu.org; Tue, 19 May 2015 11:55:51 -0400 Received: from mail-ig0-x234.google.com ([2607:f8b0:4001:c05::234]:38442) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yujry-00034c-9o for emacs-orgmode@gnu.org; Tue, 19 May 2015 11:55:50 -0400 Received: by igcau1 with SMTP id au1so17589608igc.1 for ; Tue, 19 May 2015 08:55:49 -0700 (PDT) In-Reply-To: <87mw10pow3.fsf@gmx.us> 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 Cc: Org-mode Hello, On Tue, May 19, 2015 at 11:29 AM, Rasmus wrote: > 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... Yes, I see the same - setting them with setq gives the desired behavior. I must have done this during my initial experimentation which is why it worked until I restarted emacs. I know the local variables are parsed - I get asked for confirmation on potentially unsafe values, and after confirming, C-h v ... shows that the value has been set correctly. Does this maybe have to do with export happening in a temporary buffer? I would assume that file local variables get copied over to the temp buffer as buffer local variables. Is that the case? Regards, Jake