1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-26 07:33:47 +00:00

(enable-and-notify) Added. Inspired by Roland McGrath's LCD package

enable-me.
This commit is contained in:
Eric S. Raymond 1993-03-27 01:58:24 +00:00
parent d91e2b1a2d
commit b0912e2d9b

View File

@ -120,4 +120,13 @@ to future sessions."
(insert "(put '" (symbol-name command) " 'disabled t)\n")
(save-buffer)))
;;;###autoload
(defun enable-and-notify (&rest args)
"A novice hook for non-novices."
(put this-command 'disabled nil)
(message "You typed %s. %s was disabled. It's enabled now."
(key-description (this-command-keys)) this-command)
(sit-for 0)
(call-interactively this-command))
;;; novice.el ends here