Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 4 down vote accepted

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

share|improve this answer
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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .