0

I have a .txt file which is an org file but not with the .org file extension.

I want to export the file to html on the command line, but it does not work if the file extension is .txt, only if the file extension is .org.

$ emacs alspac_data_guide.txt --batch -f org-html-export-to-html --kill

Symbol’s function definition is void: org-html-export-to-html

I think this might be because it is not loading in org-mode? How do I modify the shell command to work correctly?

1
  • --batch implies -q so it does not load your init file: you have to load it (or, better, a small subset of it) with -l. All you should nee is to set the load-path and (require 'org).
    – NickD
    Jul 13, 2020 at 12:45

1 Answer 1

0

Type -*- mode:org -*- at the top of file

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.