summary refs log tree commit diff
path: root/emacs.d
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2018-07-06 15:55:46 -0700
committerFranck Cuny <franck.cuny@gmail.com>2018-07-06 15:55:46 -0700
commitf5a1d935ed21c9d98f30c6b2f9ee3fe082a9de9c (patch)
tree3a68c56d7177dde6be55dc57677644ecbadeac64 /emacs.d
parent[emacs] Consolidate all serializers format in one file. (diff)
downloademacs.d-f5a1d935ed21c9d98f30c6b2f9ee3fe082a9de9c.tar.gz
[emacs] Forgot to add the serializer config.
Closes #6
Diffstat (limited to 'emacs.d')
-rw-r--r--emacs.d/config/fcuny-markdown.el2
-rw-r--r--emacs.d/config/fcuny-serializers.el37
2 files changed, 39 insertions, 0 deletions
diff --git a/emacs.d/config/fcuny-markdown.el b/emacs.d/config/fcuny-markdown.el
index 7387a0d..404b5d3 100644
--- a/emacs.d/config/fcuny-markdown.el
+++ b/emacs.d/config/fcuny-markdown.el
@@ -3,8 +3,10 @@
 
 (use-package markdown-mode
   :ensure t
+  :after (flyspell)
   :mode (("\\.md\\'" . gfm-mode)
          ("\\.markdown\\'" . gfm-mode))
+  :hook (markdown-mode . flyspell-mode)
   :init (setq markdown-command "pandoc -f markdown_github -c https://goo.gl/OVmlwT --self-contained"
               markdown-header-scaling 't)
   :config
diff --git a/emacs.d/config/fcuny-serializers.el b/emacs.d/config/fcuny-serializers.el
new file mode 100644
index 0000000..64ebb10
--- /dev/null
+++ b/emacs.d/config/fcuny-serializers.el
@@ -0,0 +1,37 @@
+(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)
+  :hook ((json-mode . flyspell-prog-mode)
+         (json-mode . flycheck-mode))
+  :config
+  (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)