summary refs log tree commit diff
path: root/configs/rcs/emacs.d/config/fcuny-serializers.el
blob: 76fa6c20b79d0aa7f5317376adbf94d6f6952c4c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
(eval-when-compile
  (require 'use-package))

(use-package yaml-mode
  :ensure t
  :after (flycheck flyspell)
  :mode (("\\.yml?\\'" . yaml-mode)
         ("\\.yaml?\\'" . yaml-mode))
  :hook ((yaml-mode . flycheck-mode)
         (yaml-mode . flyspell-prog-mode)))

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

(use-package thrift
  :ensure t
  :after (flycheck flyspell)
  :custom
  (thrift-indent-level 2)
  :hook ((thrift . flyspell-prog-mode)
         (thrift . flycheck-mode)))

(use-package protobuf-mode
  :ensure t
  :after (flycheck flyspell)
  :hook ((protobuf-mode . flyspell-prog-mode)
         (protobuf-mode . flycheck-mode)))

(provide 'fcuny-serializers)