stumpwm function to send complex commands to emacs