summaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
authorrekado <rekado@elephly.net>2014-10-29 18:05:23 +0100
committerrekado <rekado@elephly.net>2014-10-29 18:05:23 +0100
commita04b98b0c6ca75994e197a758567aa6d6401a0d0 (patch)
treed5cf7c4cab184a0ee56afa29fdbd149f3c9bc6ae /init.el
parent599402691aed2407a2129124401bcc00fcfe4a27 (diff)
red cursor if god-mode is active
Diffstat (limited to 'init.el')
-rw-r--r--init.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/init.el b/init.el
index 4d5dce4..8dc28f4 100644
--- a/init.el
+++ b/init.el
@@ -213,6 +213,9 @@
(require 'god-mode)
(global-set-key (kbd "<M-SPC>") 'god-mode-all)
(defun my-update-cursor ()
+ (if god-local-mode
+ (set-cursor-color "Red")
+ (set-cursor-color "White"))
(setq cursor-type (if (or god-local-mode buffer-read-only)
'box
'bar)))