package-install emacs-moz-controller
(defmacro defun-moz-controller-command (name arglist doc &rest body) "Macro for defining moz commands. NAME: function name. ARGLIST: should be an empty list () . DOC: docstring for the function. BODY: the desired JavaScript expression, as a string." `(defun ,name ,arglist ,doc (interactive) (comint-send-string (inferior-moz-process) ,@body) ) )