help-gnu-emacs
[Top][All Lists]
Advanced

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

Emacs, Org Mode, and Exporting to The Command Line Troubles


From: Colin Grey
Subject: Emacs, Org Mode, and Exporting to The Command Line Troubles
Date: Fri, 1 Oct 2010 08:49:34 +0100

Hello,

I'm trying to write a shell script that will automatically change a bunch of my org-mode files into HTML files.  But am running into some problems.  The structure, as best I understand it, should like something like this:

emacs -batch -eval '(progn (find-file "test.org.txt") (org-export-as-html "test.html"))'

However, when I run that, it gives the output:

Loading 00fink-vars...
Exporting...
Exporting...
Exporting...
Wrong type argument: stringp, nil


Oddly, I've noticed that if I don't use my custom extension (.org.txt) but just use .org like so:

emacs -batch -eval '(progn (find-file "test.org") (org-export-as-html "test.html"))'

It will run, but will always spit out a blank HTML file, no matter the contents of test.org

Thank you in advance for any help,

Colin Grey

www.CGPGrey.com
www.ProductivePorcupine.com


reply via email to

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