Deploy WSL Emacs config to Windows home

This commit is contained in:
Fabio Scotto di Santolo
2026-08-20 15:46:28 +02:00
parent 474f0082bb
commit 51ba397c6a
3 changed files with 41 additions and 3 deletions

View File

@@ -1,4 +1,35 @@
---
- name: Ensure Windows Emacs authoring directories exist
tags: [dotfiles, dotfiles:workstation, emacs, wsl]
ansible.builtin.file:
path: "{{ workstation_wsl_windows_user_home }}/{{ item }}"
state: directory
become_user: "{{ username }}"
loop:
- Org
- Org/documentation
- Org/meetings
- Org/projects
when: emacs_enabled | default(false) | bool
- name: Deploy shared Emacs configuration to the Windows home
tags: [dotfiles, dotfiles:workstation, emacs, wsl]
ansible.builtin.copy:
src: "{{ playbook_dir }}/../dotfiles/desktop/.emacs.d/"
dest: "{{ workstation_wsl_windows_user_home }}/.emacs.d/"
mode: preserve
become_user: "{{ username }}"
when: emacs_enabled | default(false) | bool
- name: Deploy Org HTML stylesheet to the Windows home
tags: [dotfiles, dotfiles:workstation, emacs, wsl]
ansible.builtin.copy:
src: "{{ playbook_dir }}/../dotfiles/desktop/.emacs.d/templates/org/org.css"
dest: "{{ workstation_wsl_windows_user_home }}/Org/org.css"
mode: "0644"
become_user: "{{ username }}"
when: emacs_enabled | default(false) | bool
- name: Ensure WSL tmux directories exist
tags: [dotfiles, dotfiles:workstation, tmux, wsl]
ansible.builtin.file: