summary refs log tree commit diff
path: root/emacs.d/custom/fcuny-json.el
blob: 8ca09dd35851a2dd1838351dc871a7709dd68a82 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
(require 'fcuny-defuns)

(use-package js-mode
  :after (flyspell flycheck)
  :custom
  (json-reformat:indent-width 2)
  (js-indent-level 2)
  :hook ((json-mode . flyspell-prog-mode)
         (json-mode . flycheck-mode))
  :init
  (if (fcuny/check-work-machine-p)
    (add-to-list 'auto-mode-alist '("\\.workflow$" . js-mode))))

(use-package jq-format
  :ensure t)

(provide 'fcuny-json)