[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org-latex-custom-lang-environments

From: Rasmus
Subject: Re: [O] org-latex-custom-lang-environments
Date: Tue, 19 May 2015 17:29:00 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Hi Jake,

Jacob Gerlach <address@hidden> 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"
> # 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"

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...


And I faced endless streams of vendor-approved Ikea furniture. . .

reply via email to

[Prev in Thread] Current Thread [Next in Thread]