diff --git a/roles/config/files/.config/doom/config.el b/roles/config/files/.config/doom/config.el index 3f041057..69d7ae6f 100644 --- a/roles/config/files/.config/doom/config.el +++ b/roles/config/files/.config/doom/config.el @@ -137,3 +137,18 @@ ;; set yaml indentation (setq-hook! 'yaml-mode-hook yaml-indent 2) (setq-hook! 'yaml-mode-hook yaml-indent-offset 2) + +;; set mode for systemd files +(add-to-list 'auto-mode-alist '("\\.service\\'" . conf-unix-mode)) +(add-to-list 'auto-mode-alist '("\\.timer\\'" . conf-unix-mode)) +(add-to-list 'auto-mode-alist '("\\.target\\'" . conf-unix-mode)) +(add-to-list 'auto-mode-alist '("\\.mount\\'" . conf-unix-mode)) +(add-to-list 'auto-mode-alist '("\\.automount\\'" . conf-unix-mode)) +(add-to-list 'auto-mode-alist '("\\.slice\\'" . conf-unix-mode)) +(add-to-list 'auto-mode-alist '("\\.socket\\'" . conf-unix-mode)) +(add-to-list 'auto-mode-alist '("\\.path\\'" . conf-unix-mode)) +(add-to-list 'auto-mode-alist '("\\.netdev\\'" . conf-unix-mode)) +(add-to-list 'auto-mode-alist '("\\.network\\'" . conf-unix-mode)) +(add-to-list 'auto-mode-alist '("\\.link\\'" . conf-unix-mode)) +(add-to-list 'auto-mode-alist '("\\.pod\\'" . conf-unix-mode)) +(add-to-list 'auto-mode-alist '("\\.container\\'" . conf-unix-mode))