From b18672d9d13316e26bd82c3afaa82c4b00086a26 Mon Sep 17 00:00:00 2001 From: Wieland Hoffmann Date: Thu, 9 Aug 2018 18:56:11 +0200 Subject: [PATCH] core: Add support for lazy installation of the systemd layer The list of supported file extensions is taken from https://github.com/holomorph/systemd-mode/blob/401d71c2dd24e424216ae5e4275c830f2a9c6b0c/systemd.el#L391-L392. --- layers/auto-layer.el | 1 + 1 file changed, 1 insertion(+) diff --git a/layers/auto-layer.el b/layers/auto-layer.el index 937126aebb68..74c05dbe3be1 100644 --- a/layers/auto-layer.el +++ b/layers/auto-layer.el @@ -74,6 +74,7 @@ (configuration-layer/lazy-install 'sml :extensions '("\\(\\.s\\(ml\\|ig\\)\\'\\|\\.\\(sml\\|sig\\)\\'\\)" sml-mode)) (configuration-layer/lazy-install 'sql :extensions '("\\(\\.sql\\'\\)" sql-mode)) (configuration-layer/lazy-install 'swift :extensions '("\\(\\.swift\\'\\)" swift-mode)) +(configuration-layer/lazy-install 'systemd :extensions'("\\(\\.\\(nspawn\\|automount\\|busname\\|mount\\|service\\|slice\\|socket\\|swap\\|target\\|timer\\|link\\|netdev\\|network\\)\\'\\)" systemd-mode)) (configuration-layer/lazy-install 'shell-scripts :extensions '("\\(\\.fish\\'\\|/fish_funced\\..*\\'\\)" fish-mode)) (configuration-layer/lazy-install 'typescript :extensions '("\\(\\.ts$\\)" typescript-mode)) (configuration-layer/lazy-install 'vimscript :extensions '("\\(\\.vim\\'\\|[._]?g?vimrc\\'\\|\\.exrc\\'\\|_vimrc\\'\\|\\.vim[rc]?\\'\\)" vimrc-mode))