2017-01-12 00:04:20 +00:00
|
|
|
spacemacs:
|
|
|
|
pkg.installed:
|
2017-01-14 17:01:18 +00:00
|
|
|
{% if grains['kernel'] == 'Darwin' %}
|
2017-01-12 00:04:20 +00:00
|
|
|
- name: emacs-plus
|
2017-03-18 07:12:55 +00:00
|
|
|
- taps: 'd12frosted/emacs-plus'
|
2017-01-14 17:01:18 +00:00
|
|
|
{% elif grains['kernel'] == 'Linux' %}
|
2017-01-12 00:04:20 +00:00
|
|
|
- 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 }}
|
2017-01-14 17:19:55 +00:00
|
|
|
- template: jinja
|
2017-01-12 00:04:20 +00:00
|
|
|
- force: True
|