9

How do I evaluate multiple functions simultaneously using emacs --eval on command line? For example I want to combine the followings in a single command:

emacs --eval "(toggle-frame-maximized)"
emacs --eval "(sr-speedbar-toggle)"

I tried to wrap them together but all attempts failed. How do I do this?

Drew
  • 75,699
  • 9
  • 109
  • 225

1 Answers1

15

Simply use (progn ). This should address your question:

emacs --eval "(progn (toggle-frame-maximized) (sr-speedbar-toggle))"

Please note that this does not execute the commands simultaneously (as you requested). It executes one command after another.

dmg
  • 629
  • 4
  • 13