Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I know you can delete the last macro from the macro ring with C-x C-k C-d, but how do I delete a macro that I've already named (and assigned to a key in .emacs)?

share|improve this question
up vote 0 down vote accepted

To delete the named macro, hit M-: and type (fmakunbound 'name-of-macro). (I couldn't find any interactive command to do that.)

To unbind the key, use M-x global-unset-key and enter the key binding.

share|improve this answer
    
The debugger is giving me a void function error for fmakunbond. ... Turns out macros are only temporary, even named ones: they're cleared once I restart emacs. This is good enough for me :) – Trong Truong Dec 20 '12 at 16:02
    
Oops, I misspelt fmakunbound :) – legoscia Dec 20 '12 at 18:12

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .