Skip to main content
1 of 2
blueFast
  • 295
  • 2
  • 11

How to run emacs function from the shell

I would like to:

  1. run an emacs function from the shell
  2. in a standard emacs session (configured as if it was run in an interactive session)
  3. with a certain file in the active buffer

So I would like to do something like:

emacs --function org-beamer-export-to-pdf --file my-presentation.org

Bonus points if I can run it with the emacsclient, connecting to an already running emacs server.

blueFast
  • 295
  • 2
  • 11