I had set up a custom hook for a mode, but I now realize that I want to use the mode without my changes and without my hook. So, I want the mode to behave as if I never set the hook in the first place, and I want to do this without restarting emacs. Is this reasonably doable?
For example, if I was using the following hook:
(add-hook 'my-mode-hook (lambda () ;; Do a bunch of stuff...ie: (local-set-key (kbd "C-c l") 'some-fancy-function) ) )
I can achieve my goal by deleting the hook for
my-mode from my
init.el, restarting emacs, and then using
my-mode as a default setup. But can I do this without restarting emacs?