2019-10-03 10:50:19 +00:00
|
|
|
---
|
2019-10-03 14:24:33 +00:00
|
|
|
- name: Clone Emacs settings
|
2019-10-03 10:50:19 +00:00
|
|
|
git:
|
2020-01-10 15:39:47 +00:00
|
|
|
repo: https://code.acperkins.com/acp/emacs.d.git
|
2019-10-03 10:50:19 +00:00
|
|
|
dest: "{{ ansible_env.HOME }}/.emacs.d"
|
2020-02-28 14:20:29 +00:00
|
|
|
- name: Create Emacs user service (Linux)
|
|
|
|
copy:
|
2020-03-08 22:09:14 +00:00
|
|
|
src: emacs.service
|
2020-02-28 14:20:29 +00:00
|
|
|
dest: "{{ ansible_env.HOME }}/.config/systemd/user/emacs.service"
|
|
|
|
when: ansible_system == 'Linux'
|
|
|
|
- name: Add Emacs server to autostart (FreeBSD)
|
|
|
|
copy:
|
|
|
|
src: '{{ ansible_env.HOME }}/.emacs.d/emacs-server.desktop'
|
|
|
|
dest: '{{ ansible_env.HOME }}/.config/autostart'
|
|
|
|
remote_src: yes
|
|
|
|
when: ansible_system == 'FreeBSD'
|
|
|
|
- name: Start Emacs user service
|
|
|
|
systemd:
|
|
|
|
name: emacs.service
|
|
|
|
scope: user
|
|
|
|
daemon_reload: yes
|
|
|
|
enabled: yes
|
|
|
|
state: started
|
|
|
|
when: ansible_system == 'Linux'
|
|
|
|
- name: Create Emacs client launcher
|
|
|
|
copy:
|
|
|
|
src: "{{ ansible_env.HOME }}/.emacs.d/emacs-client.desktop"
|
|
|
|
dest: "{{ ansible_env.HOME }}/.local/share/applications/emacs.desktop"
|
|
|
|
remote_src: yes
|