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

(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)