chrisdone/god-mode — pull request #13 by magnars (2013-08-12 03:51:49+00:00)
Title: Run hooks when god-local-mode is enabled/disabled

I use this to change the cursor. Might be interesting for core?

(defun my-update-cursor ()
(setq cursor-type (if (or god-local-mode buffer-read-only)
'box
'bar)))

(add-hook 'god-mode-enabled-hook 'my-update-cursor)
(add-hook 'god-mode-disabled-hook 'my-update-cursor)