I have 2 Emacs macros defined that I need to run frequently. I always run them
together and would like to have them assigned to a single keystroke
combination; but I know only enough Emacs lisp syntax to bind only 1 command at
a time to a keystroke, so that now I have to run 2 keystroke
(defun run-my-two-functions ()
Run my two functions.
(function-one)
(function-two)
)
And then bind that to your key:
(global-set-key [C-f12] 'run-my-two-functions)
It should work with macros created with defmacro instead of functions but I'm
not sure. Not tested at all, never mind
From: discuss-boun...@blu.org [mailto:discuss-boun...@blu.org] On Behalf Of
Richard Pieri
Sent: Thursday, January 13, 2011 2:23 PM
On Jan 13, 2011, at 2:11 PM, Daniel Hagerty wrote:
Almost. keyboard-macros aren't quite functions, and the elisp
They aren't functions at all.