summary refs log tree commit diff
path: root/emacs.d/config/fcuny-json.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs.d/config/fcuny-json.el')
-rw-r--r--emacs.d/config/fcuny-json.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/emacs.d/config/fcuny-json.el b/emacs.d/config/fcuny-json.el
new file mode 100644
index 0000000..91c682b
--- /dev/null
+++ b/emacs.d/config/fcuny-json.el
@@ -0,0 +1,11 @@
+(eval-when-compile
+  (require 'use-package))
+
+(use-package json-mode
+  :ensure t
+  :config
+  (setq json-reformat:indent-width 2)
+  (if (fc/check-work-machine-p)
+    (add-to-list 'auto-mode-alist '("\\.workflow$" . json-mode))))
+
+(provide 'fcuny-json)