I use emacsclient instead of emacs directly. Suppose I want to start a frame in emacsclient with the command "mu4e" (to run an excellent little email client). For emacs I would simply do emacs -f mu4e. But in emacsclient, if I try the seeming equivalent:

emacsclient -c --eval mu4e

I get this:

*ERROR*: Symbol's value as variable is void: mu4e

Clearly I need to evaluate a lisp expression to call the function mu4e, but I can't figure out how to do this. Google searches did not seem to produce anything helpful.


mu4e is a function? Try this: emacsclient -c --eval "(mu4e)"

  • 1
    That did it, thanks! Couldn't find the syntax for calling a function when I looked around online... – ShankarG Jun 6 '12 at 6:41

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.