diff options
author | Alan Pearce | 2014-08-08 11:38:27 +0100 |
---|---|---|
committer | Alan Pearce | 2014-08-08 11:38:27 +0100 |
commit | fbd4633b01cfd64590ecb339f18f3b4ac59c4ddf (patch) | |
tree | 882592bc879179f3012d63b8e86d4975074f6686 | |
parent | 04fc37a53277730a68b8f3af7c8597ae9c1e6ab8 (diff) | |
download | dotfiles-fbd4633b01cfd64590ecb339f18f3b4ac59c4ddf.tar.lz dotfiles-fbd4633b01cfd64590ecb339f18f3b4ac59c4ddf.tar.zst dotfiles-fbd4633b01cfd64590ecb339f18f3b4ac59c4ddf.zip |
Emacs: Create mode for Salt to use with helm-dash
-rw-r--r-- | tag-emacs/emacs.d/init.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tag-emacs/emacs.d/init.el b/tag-emacs/emacs.d/init.el index 363c7c0..f087278 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 |