Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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