Start emacs-server on FreeBSD
This commit is contained in:
parent
df70172d99
commit
3386311cf8
1 changed files with 7 additions and 1 deletions
|
@ -11,13 +11,19 @@
|
||||||
depth: 3
|
depth: 3
|
||||||
register: emacs_service_files
|
register: emacs_service_files
|
||||||
when: ansible_system == 'Linux'
|
when: ansible_system == 'Linux'
|
||||||
- name: Create Emacs user service
|
- name: Create Emacs user service (Linux)
|
||||||
copy:
|
copy:
|
||||||
src: '{{ item.path }}'
|
src: '{{ item.path }}'
|
||||||
dest: "{{ ansible_env.HOME }}/.config/systemd/user/emacs.service"
|
dest: "{{ ansible_env.HOME }}/.config/systemd/user/emacs.service"
|
||||||
remote_src: yes
|
remote_src: yes
|
||||||
loop: '{{ emacs_service_files.files }}'
|
loop: '{{ emacs_service_files.files }}'
|
||||||
when: ansible_system == 'Linux'
|
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
|
- name: Start Emacs user service
|
||||||
systemd:
|
systemd:
|
||||||
name: emacs.service
|
name: emacs.service
|
||||||
|
|
Loading…
Reference in a new issue