Emacs Lisp question

Daniel Hagerty hag-MhwEwdFzMDlg9hUCZPvPmw at public.gmane.org
Thu Jan 13 14:11:16 EST 2011


Richard Pieri <richard.pieri-Re5JQEeQqe8AvxtiuMwx3w at public.gmane.org> writes:

> (defun run-my-two-functions ()
>   "Run my two functions."
>   (function-one)
>   (function-two)
>   )

    Almost.  keyboard-macros aren't quite functions, and the elisp
needs to be marked as a command in order to be bound to a key.  This
works for me:

(defun run-my-two-macros ()
  "Run my two macros."
  (interactive)
  (execute-kbd-macro 'macro-one)
  (execute-kbd-macro 'macro-two))




More information about the Discuss mailing list