Saltstack mode for emacs
How can I get Emacs to work with Salt files? Is there any code already available or how can I create the mode myself?
There's a Sublime Text Plugin that does something similar.
thank
+3
source to share
2 answers
Added strict textual configuration related to use YAML mode, so you can do the same using yaml-mode for Emacs:
(add-to-list 'auto-mode-alist '("\\.sls\\'" . yaml-mode))
or if you want to include tab settings from this sublime config you can create a new mode like this:
(require 'yaml-mode) (define-derived-mode saltstack-mode yaml-mode "Saltstack" "Minimal Saltstack mode, based on `yaml-mode'." (setq tab-width 2 indent-tabs-mode nil)) (add-to-list 'auto-mode-alist '("\\.sls\\'" . saltstack-mode))
(nb untested)
+7
source to share
It doesn't look like I found a formula for using saline to install emacs ....
https://github.com/saltstack-formulas/emacs-formula
The salt support prep editors seem to support, but they believe their use of the jinja templates in Pillar makes things easy enough.
+1
source to share