Saturday, March 12, 2011

emacs un-declaring/removing function or variable

Every time I forget this and look it on the reference I can never find again, or takes me so damn long.

How to unbound/undeclare/remove/unset a function:
(fmakunbound symbol)
Where symbol is a function name.

There's also a version for unsetting variables:
(makunbound symbol)
Where symbol is obviously a variable.

1 comment:

  1. thanks for this :) I could never actually find it, now to try and get rid of some useless emacs variables.