summary refs log tree commit diff
path: root/emacs/custom
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/custom')
-rw-r--r--emacs/custom/my-conf.el53
1 files changed, 12 insertions, 41 deletions
diff --git a/emacs/custom/my-conf.el b/emacs/custom/my-conf.el
index 55bc132..d91a409 100644
--- a/emacs/custom/my-conf.el
+++ b/emacs/custom/my-conf.el
@@ -6,51 +6,22 @@
 
 ;;; Code:
 
-(require 'use-package)
+(add-to-list 'auto-mode-alist '("\\.yml\\'" . yaml-mode))
+(add-to-list 'auto-mode-alist '("\\.yaml\\'" . yaml-mode))
+(add-to-list 'auto-mode-alist '("Dockerfile\\'" . dockerfile-mode))
+(add-to-list 'auto-mode-alist '("\\.tf\\'" . terraform-mode))
 
-(use-package dockerfile-mode
-  :ensure t
-  :custom
-  (dockerfile-use-sudo t))
+(customize-set-variable 'dockerfile-use-sudo t)
+(customize-set-variable 'dockerfile-use-buildkit t)
 
-(use-package yaml-mode
-  :ensure t)
+(customize-set-variable 'json-reformat:indent-width 2)
+(customize-set-variable 'js-indent-level 2)
+(customize-set-variable 'css-indent-offset 2)
 
-(use-package js-mode
-  :custom
-  (json-reformat:indent-width 2)
-  (js-indent-level 2)
-  :hook ((json-mode . flyspell-prog-mode)))
+(dolist (hook '(json-mode-hook protobuf-mode-hook systemd-mode-hook term-mode-hook))
+  (add-hook hook '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)))
-
-(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))
+(add-hook 'terraform-mode-hook 'terraform-format-on-save-mode)
 
 (provide 'my-conf)
 ;;; my-conf.el ends here