2

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?

Drew
  • 75,699
  • 9
  • 109
  • 225
Student
  • 225
  • 1
  • 7

1 Answers1

3

emacsclient -e '(load "hello.el")'

Student
  • 225
  • 1
  • 7
gigiair
  • 2,124
  • 1
  • 8
  • 14