dotfiles/playbooks/roles/emacs/tasks/main.yml
2021-12-31 17:51:23 -05:00

71 lines
1.6 KiB
YAML

---
- name: "Clone chemacs"
git:
repo: "https://github.com/plexus/chemacs2"
dest: ~/.emacs.d
clone: yes
update: yes
- name: "Write .emacs-profiles.el"
file:
src: ~/.dotfiles/emacs/emacs-profiles.el
dest: ~/.emacs-profiles.el
state: link
force: yes
- name: "Create Emacs Legacy"
file:
path: ~/.emacs.legacy
state: directory
- name: "[Emacs Legacy] - init.el"
file:
src: ~/.dotfiles/emacs/emacs.legacy/init.el
dest: "{{ legacy_root }}/init.el"
state: link
force: yes
- name: "[Emacs Legacy] - Symlink custom directory"
file:
src: ~/.dotfiles/emacs/emacs.legacy/custom
dest: "{{ legacy_root }}/custom"
state: link
force: yes
- name: "[Emacs Legacy] - Symlink early-init.el"
file:
src: ~/.dotfiles/emacs/emacs.legacy/early-init.el
dest: "{{ legacy_root }}/early-init.el"
state: link
force: yes
- name: "[Doom Emacs] - Clone Doom"
git:
repo: "https://github.com/hlissner/doom-emacs"
dest: ~/.doom-emacs
clone: yes
- name: "[Doom Emacs] - init.el"
file:
src: ~/.dotfiles/emacs/emacs.doom/init.el
dest: "{{ doom_root }}/init.el"
state: link
force: yes
- name: "[Doom Emacs] - config.el"
file:
src: ~/.dotfiles/emacs/emacs.doom/config.el
dest: "{{ doom_root }}/config.el"
state: link
force: yes
- name: "[Doom Emacs] - packages.el"
file:
src: ~/.dotfiles/emacs/emacs.doom/packages.el
dest: "{{ doom_root }}/packages.el"
state: link
force: yes
- name: "[Doom Emacs] - Install"
ansible.builtin.shell:
cmd: "~/.doom-emacs/bin/doom -y install"