To run an elisp file hello.el
with emacs in cli, do simply
$ emacs --script hello.el
However, a naive try for emacsclient
fails, as --script
is not an option of emacsclient
.
$ emacsclient --script
emacsclient: unrecognized option '--script'
Try 'emacsclient --help' for more information
Question: What is a good practice to evaluate an elisp file by a running emacsclient?