summary refs log tree commit diff stats
path: root/tag-emacs
diff options
context:
space:
mode:
authorAlan Pearce2014-08-08 11:38:27 +0100
committerAlan Pearce2014-08-08 11:38:27 +0100
commitfbd4633b01cfd64590ecb339f18f3b4ac59c4ddf (patch)
tree882592bc879179f3012d63b8e86d4975074f6686 /tag-emacs
parent04fc37a53277730a68b8f3af7c8597ae9c1e6ab8 (diff)
downloadnixfiles-fbd4633b01cfd64590ecb339f18f3b4ac59c4ddf.tar.lz
nixfiles-fbd4633b01cfd64590ecb339f18f3b4ac59c4ddf.tar.zst
nixfiles-fbd4633b01cfd64590ecb339f18f3b4ac59c4ddf.zip
Emacs: Create mode for Salt to use with helm-dash
Diffstat (limited to 'tag-emacs')
-rw-r--r--tag-emacs/emacs.d/init.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el
index 363c7c0e..f0872786 100644
--- a/tag-emacs/emacs.d/init.el
+++ b/tag-emacs/emacs.d/init.el
@@ -336,7 +336,8 @@
                   (setq-local helm-dash-docsets (if (listp docsets) docsets (list docsets))))))
             (add-hook 'ansible-mode-hook (ap/create-helm-dash-hook "Ansible"))
             (add-hook 'php-mode-hook (ap/create-helm-dash-hook '("PHP" "Symfony")))
-            (add-hook 'twig-mode-hook (ap/create-helm-dash-hook '("Twig")))))
+            (add-hook 'twig-mode-hook (ap/create-helm-dash-hook '("Twig")))
+            (add-hook 'saltstack-mode-hook (ap/create-helm-dash-hook '("SaltStack")))))
 
 (req-package which-func
   :init (which-function-mode)
@@ -694,6 +695,9 @@ mouse-1: Display Line and Column Mode Menu"))))))
 (define-derived-mode ansible-mode yaml-mode "Ansible")
 (add-to-list 'auto-mode-alist '("\\(?:ansible.+\\|roles/.+/\\(?:tasks\\|handlers\\)\\)/.+\\.yml\\'" . ansible-mode))
 
+(define-derived-mode saltstack-mode yaml-mode "Salt")
+(add-to-list 'auto-mode-alist '("\\.sls\\'" . saltstack-mode))
+
 ;;;; Planning
 
 (req-package org