Skip to content

How to make Emacs unusable using the hook post-self-insert-hook?

(defun insert-^^ () (insert "^^"))

(add-hook 'post-self-insert-hook #'insert-^^)
(remove-hook 'post-self-insert-hook #'insert-^^)