blob: 279efb58222aa4927123c1555fa9cf33776d9bec (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
(require 'config-package)
(use-package json-mode
:mode "\\.json\\'"
:config
(setq json-reformat:indent-width 2)
:bind (:map json-mode-map
("C-z" . hydra-json/body)))
(defhydra hydra-json (:hint nil :exit t)
"
^Command^
_f_: format
"
("f" json-reformat-region)
("q" nil "quit" :color blue))
(provide 'module-json)
|