pinch-dotfiles/salty/base/spacemacs/init.sls
2017-03-18 03:12:55 -04:00

23 lines
595 B
Text

spacemacs:
pkg.installed:
{% if grains['kernel'] == 'Darwin' %}
- name: emacs-plus
- taps: 'd12frosted/emacs-plus'
{% elif grains['kernel'] == 'Linux' %}
- name: emacs
{% endif %}
spacemacs-repo:
git.latest:
- name: https://github.com/syl20bnr/spacemacs
- target: {{ grains.homedir }}/.emacs.d
- user: {{ grains.user }}
spacemacs-config:
file.managed:
- name: {{ grains.homedir }}/.spacemacs
- source: salt:///spacemacs/files/spacemacsconfig
- user: {{ grains.user }}
- group: {{ grains.user }}
- template: jinja
- force: True