From 8cec692e428480aa60d949a35eba09db5cf5524d Mon Sep 17 00:00:00 2001 From: exu Date: Sun, 27 Oct 2024 18:54:56 +0100 Subject: [PATCH] Add systemd file modes --- roles/config/files/.config/doom/config.el | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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))