Add systemd file modes
This commit is contained in:
parent
2e89f40558
commit
8cec692e42
@ -137,3 +137,18 @@
|
|||||||
;; set yaml indentation
|
;; set yaml indentation
|
||||||
(setq-hook! 'yaml-mode-hook yaml-indent 2)
|
(setq-hook! 'yaml-mode-hook yaml-indent 2)
|
||||||
(setq-hook! 'yaml-mode-hook yaml-indent-offset 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))
|
||||||
|
Loading…
Reference in New Issue
Block a user