(require 'config-package) (use-package json-mode :mode "\\.json\\'" :config (setq json-reformat:indent-width 2) :bind ("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)