emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Peter Davis <pfd@pfdstudio.com>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: Misc. questions
Date: Tue, 04 Oct 2016 16:26:22 -0400	[thread overview]
Message-ID: <1475612782.3257332.745880921.28033510@webmail.messagingengine.com> (raw)
In-Reply-To: <CA+M2ft-xd0xbUuuMVKC72un4syv5D6VaTLgvQ1tf73pp4p3cBQ@mail.gmail.com>


On Tue, Oct 4, 2016, at 03:57 PM, John Hendy wrote:
> On Tue, Oct 4, 2016 at 2:02 PM, Peter Davis <pfd@pfdstudio.com> wrote:
> > I apologize in advance for the flood of questions, but I'm using org in
> > new ways now for creating documentation, and running into a lot of
> > issues.
> >
> > 1) Is there a way to automatically say "yes" to all the "Evaluate code
> > block...?" questions when I export, so I don't have to keep typing "yes"
> > over and over again?
> 
> I googled "stop orgmode babel having to confirm" and got these:
> -
> http://emacs.stackexchange.com/questions/23946/how-can-i-stop-the-confirmation-to-evaluate-source-code-when-exporting-to-html
> -
> http://stackoverflow.com/questions/29952543/how-do-i-prevent-org-mode-from-executing-all-of-the-babel-source-blocks
> 
> Both refer to babel variables you can set.[1] You can put them in a
> single file (at the very top):
> 
> # -*- org-confirm-babel-evaluate: nil; -*-
> 
> Or add this to .emacs
> 
> (setq org-confirm-babel-evaluate nil)
> 
> Or use #+bind[2] within a file (similar to the first local variable
> example).
> 

Thanks, John (and others) for this! You've saved me a lot of annoying
typing.

> >
> > 2) How does the export menu get set? I'm loading, for example,
> > ox-texinfo, but I don't see the option to export texinfo when I type C-c
> > C-e.  I'm also loading ox-pandoc, which shows me a slew of export
> > formats on my Mac, but only two, file and buffer, on my Win10 machine.
> >
> 
> Guessing it's something on your side? Having never used it, I just added:
> 
> (require 'ox-texinfo)
> 
> I get an [i] option after C-e with various "Export to texinfo" options.

Interestingly, if I do M-x load-library ox-texinfo in emacs, it works
and I get the texinfo options. However, just loading it in my startup
file doesn't seem to be working. Curious.

> 
> > 4) Is json a valid language for #+BEGIN_SRC? I don't see any syntax
> > highlighting in HTML or LaTeX/PDF output, and I'm getting errors from
> > LaTeX:
> >
> > ! Package Listings Error: language json undefined.
> >
> > Come to think of it, I think the org-mode doc lists both JavaScript (js)
> > and JSON (json) as supported languages for code blocks, but the Listings
> > LaTeX package doesn't list either of these.
> >
> 
> Not sure where that was. I use this page as my reference and don't see
> it (but do see js):
> - http://orgmode.org/worg/org-contrib/babel/languages.html

Hmmm. I don't remember where I saw it offhand, but js didn't work
either. This page now tells me I need to have node.js installed.

Thanks!
-pd




-- 
  Peter Davis
  www.techcurmudgeon.com

  reply	other threads:[~2016-10-04 20:26 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-04 19:02 Misc. questions Peter Davis
2016-10-04 19:57 ` John Hendy
2016-10-04 20:26   ` Peter Davis [this message]
2016-10-04 20:50     ` Thomas S. Dye
2016-10-05 10:22   ` Colin Baxter
2016-10-04 19:58 ` Thomas S. Dye
2016-10-04 20:21 ` Stig Brautaset
2016-10-05 13:08   ` Peter Davis
2016-10-05 17:35 ` Peter Davis

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=1475612782.3257332.745880921.28033510@webmail.messagingengine.com \
    --to=pfd@pfdstudio.com \
    --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).