My new (apparently unpopular) prefs for god-mode

I like activation to be consistent across buffers.
I /do/ actually find god-mode to be useful just about
anywhere (particularly missed it in magit). When it isn't useful...it's
just a matter of a single Esc to turn it off :\
This commit is contained in:
Kashish Sharma 2015-03-26 10:13:55 +05:30
parent edec80c453
commit 26f6d3b418
1 changed files with 5 additions and 1 deletions

View File

@ -204,9 +204,13 @@
;;;; God Mode
(require 'god-mode)
(global-set-key (kbd "<escape>") 'god-local-mode)
(global-set-key (kbd "<escape>") 'god-mode-all)
(god-mode-all)
(setq god-exempt-major-modes nil)
(setq god-exempt-predicates nil)
(define-key helm-map (kbd "<escape>") 'god-local-mode)
(defun my-update-cursor ()
(setq cursor-type (if (or god-local-mode buffer-read-only)
'box