Add systemd file modes

This commit is contained in:
exu 2024-10-27 18:54:56 +01:00
parent 2e89f40558
commit 8cec692e42

View File

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