summary refs log tree commit diff
path: root/emacs.d/modules/module-json.el
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2018-04-08 17:08:28 -0700
committerFranck Cuny <franck.cuny@gmail.com>2018-04-08 17:08:28 -0700
commit5a08d8a96f9cc1983076028f24a1c418eb16b1dd (patch)
tree63df24876cb28e8e555ed8d35ea010ce1dcdc2d9 /emacs.d/modules/module-json.el
parent[emacs] Add additional variables. (diff)
downloademacs.d-5a08d8a96f9cc1983076028f24a1c418eb16b1dd.tar.gz
[emacs] Fix (I think) the binding for hydra
Diffstat (limited to '')
-rw-r--r--emacs.d/modules/module-json.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/emacs.d/modules/module-json.el b/emacs.d/modules/module-json.el
index 40f46e5..279efb5 100644
--- a/emacs.d/modules/module-json.el
+++ b/emacs.d/modules/module-json.el
@@ -2,9 +2,12 @@
 
 (use-package json-mode
   :mode "\\.json\\'"
+
   :config
   (setq json-reformat:indent-width 2)
-  :bind ("C-z" . hydra-json/body))
+
+  :bind (:map json-mode-map
+              ("C-z" . hydra-json/body)))
 
 (defhydra hydra-json (:hint nil :exit t)
 "