29 lines
924 B
YAML
29 lines
924 B
YAML
---
|
|
- name: Clone Emacs settings
|
|
git:
|
|
repo: https://code.acperkins.com/acp/emacs.d.git
|
|
dest: "{{ ansible_env.HOME }}/.emacs.d"
|
|
- name: Create Emacs user service (Linux)
|
|
copy:
|
|
src: emacs.service
|
|
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
|