summary refs log tree commit diff
path: root/emacs/custom/my-conf.el
blob: 924f90fc7126e495959fd01dcb21188d5436c294 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
;;; 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)

(provide 'my-conf)
;;; my-conf.el ends here