emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rasmus <rasmus@gmx.us>
To: emacs-orgmode@gnu.org
Subject: Re: org-latex-custom-lang-environments
Date: Tue, 19 May 2015 17:29:00 +0200	[thread overview]
Message-ID: <87mw10pow3.fsf@gmx.us> (raw)
In-Reply-To: CAA6UvuG=WEPGryWz4DWTH-xTCOj4rJ0=03sgh6+vNGwZyW79cg@mail.gmail.com

Hi Jake,

Jacob Gerlach <jacobgerlach@gmail.com> 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. . .

  reply	other threads:[~2015-05-19 15:29 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-19 15:16 org-latex-custom-lang-environments Jacob Gerlach
2015-05-19 15:29 ` Rasmus [this message]
2015-05-19 15:55   ` org-latex-custom-lang-environments Jacob Gerlach
2015-05-19 16:09     ` org-latex-custom-lang-environments Rasmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87mw10pow3.fsf@gmx.us \
    --to=rasmus@gmx.us \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).