summaryrefslogblamecommitdiff
path: root/emacs/custom/my-conf.el
blob: d91a4093002fd97a4ce0cabc2a907715a749edbb (plain) (tree)
1
2
3
4
5
6
7
8

                                                                                            
               


                                                                     

         



                                                                   
 

                                                   
 


                                                      
 

                                                                                    
 
                                                              
 

                        
;;; my-conf.el --- Configure modes related to configuration files -*- lexical-binding: t -*-

;;; Commentary:
;; Provides configuration for modes that are related to configuration
;; files.

;;; Code:

(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))

(customize-set-variable 'dockerfile-use-sudo t)
(customize-set-variable 'dockerfile-use-buildkit t)

(customize-set-variable 'json-reformat:indent-width 2)
(customize-set-variable 'js-indent-level 2)
(customize-set-variable 'css-indent-offset 2)

(dolist (hook '(json-mode-hook protobuf-mode-hook systemd-mode-hook term-mode-hook))
  (add-hook hook 'flyspell-prog-mode))

(add-hook 'terraform-mode-hook 'terraform-format-on-save-mode)

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