;;; my-conf.el --- Configure modes related to configuration files -*- lexical-binding: t -*- ;;; Commentary: ;; Provides configuration for modes that are related to configuration ;; files. ;;; Code: (require 'use-package) (use-package dockerfile-mode :ensure t :custom (dockerfile-use-sudo t)) (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))) (use-package jq-format :ensure t) (use-package protobuf-mode :ensure t :hook ((protobuf-mode . flyspell-prog-mode))) (use-package systemd :ensure t :hook ((systemd-mode . flyspell-prog-mode) (systemd-mode . company-mode))) (use-package hcl-mode :ensure t) (use-package terraform-mode :ensure t :mode (("\\.tf\\'" . terraform-mode)) :hook (terraform-mode . terraform-format-on-save-mode)) (use-package terraform-doc :ensure t) (use-package chef-mode :ensure t) (use-package css-mode :ensure nil :init (setq css-indent-offset 2)) (provide 'my-conf) ;;; my-conf.el ends here