2022-03-23 01:03:04 +00:00
|
|
|
- name: Setup doom emacs
|
|
|
|
when: "'emacs' in setup"
|
|
|
|
tags: [doom,emacs]
|
|
|
|
block:
|
|
|
|
- name: Remove old emacs config
|
2022-03-24 15:18:47 +00:00
|
|
|
file: state=absent path={{ home }}/.emacs.d
|
2022-03-23 01:03:04 +00:00
|
|
|
- name: Git clone doom emacs
|
|
|
|
git:
|
|
|
|
repo: https://github.com/hlissner/doom-emacs
|
2022-03-24 15:18:47 +00:00
|
|
|
dest: "{{ home }}/.emacs.d"
|
2022-03-23 01:03:04 +00:00
|
|
|
accept_newhostkey: yes
|
|
|
|
single_branch: yes
|
|
|
|
version: master
|
|
|
|
depth: 1
|
|
|
|
- name: Install doom emacs
|
|
|
|
shell: |
|
2022-03-24 15:18:47 +00:00
|
|
|
chown -R {{ name }} {{ home }}/.emacs.d
|
|
|
|
echo "y\ny"|su {{ name }} {{ home }}/.emacs.d/bin/doom install
|
2022-03-23 01:03:04 +00:00
|
|
|
#* ^ Above we answer terminal prompts
|
|
|
|
# - name: Add doom emacs config
|
|
|
|
# - name: Run doom sync
|