From 0e412e54873b6dd494921855dd93c3a56d56b260 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 15 Mar 2020 19:16:51 -0700 Subject: emacs: consolidate configuration for conf-mode --- emacs.d/custom/fcuny-conf.el | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 emacs.d/custom/fcuny-conf.el (limited to 'emacs.d/custom/fcuny-conf.el') diff --git a/emacs.d/custom/fcuny-conf.el b/emacs.d/custom/fcuny-conf.el new file mode 100644 index 0000000..e97d055 --- /dev/null +++ b/emacs.d/custom/fcuny-conf.el @@ -0,0 +1,26 @@ +(use-package dockerfile-mode + :ensure t + :mode "Dockerfile[a-zA-Z.-]*\\'") + +(use-package yaml-mode + :ensure t) + +(use-package js-mode + :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)))) + +(use-package jq-format + :ensure t) + +(use-package protobuf-mode + :ensure t + :hook ((protobuf-mode . flyspell-prog-mode) + (protobuf-mode . flycheck-mode))) + +(provide 'fcuny-conf) -- cgit 1.4.1