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:
parent
edec80c453
commit
26f6d3b418
6
init.el
6
init.el
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue