23 lines
539 B
Text
23 lines
539 B
Text
|
spacemacs:
|
||
|
pkg.installed:
|
||
|
{% if grains['os'] == 'MacOS' %}
|
||
|
- name: emacs-plus
|
||
|
- tap: 'd12frosted/emacs-plus'
|
||
|
{% else %}
|
||
|
- 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 }}
|
||
|
- force: True
|