I would like to:
- run an emacs function from the shell
- in a standard emacs session (configured as if it was run in an interactive session)
- 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.