summary refs log tree commit diff
path: root/emacs.d/custom/fcuny-json.el
blob: 14ea06c899ee6edae43b4d4af3ff3037fbd4ecb7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
(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))))

(provide 'fcuny-json)