I created a new macro and saved to .emacs/init.el:

(fset 'foobar
   [?f ?o ?o return ?b ?a ?r return])

How can I use this macro after restarting emacs?

  • 1
    Related Jul 3, 2015 at 16:25
  • @Dan thank you for being aware, but I don't agree on marking this as a duplicated. The question is not the same, although the solution is pointed out in other SE answer.
    – a--m
    Jul 6, 2015 at 10:42
  • @kaushalmodi thank you, it's related indeed.
    – a--m
    Jul 6, 2015 at 10:43

1 Answer 1


You run that macro with M-x foobar.

Not the answer you're looking for? Browse other questions tagged or ask your own question.