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

(use-package json-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$" . json-mode))))

(provide 'fcuny-json)