summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2015-06-28 00:26:34 -0400
committerKyle Meyer <kyle@kyleam.com>2015-06-28 00:26:34 -0400
commit38df32490ac8de3329396ff957c5367f0f759c5f (patch)
tree847437181775df3fa62bba2911ebf96bf6b6ff9e
parent8ccaa3b79bf8a0658cc5dcf8093c29576cc4ab44 (diff)
downloademacs.d-38df32490ac8de3329396ff957c5367f0f759c5f.tar.gz
Disable lispy when activating God mode
-rw-r--r--lisp/init-god.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/init-god.el b/lisp/init-god.el
index 5ccb00d..357b40c 100644
--- a/lisp/init-god.el
+++ b/lisp/init-god.el
@@ -24,7 +24,13 @@
(add-hook 'god-mode-enabled-hook (lambda ()
(when view-mode
- (view-mode -1))))
+ (view-mode -1))
+ (when (derived-mode-p 'emacs-lisp-mode)
+ (lispy-mode -1))))
+
+(add-hook 'god-mode-disabled-hook (lambda ()
+ (when (derived-mode-p 'emacs-lisp-mode)
+ (lispy-mode 1))))
(add-hook 'god-mode-enabled-hook 'km/god-update-cursor)
(add-hook 'god-mode-disabled-hook 'km/god-update-cursor)