Skip to content

Commit

Permalink
feat: add emacs wayland support
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesrocket committed Nov 27, 2024
1 parent 54c83a5 commit 3d9b6ec
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions profiles/charlesrocket/station.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ amd: false
clamav: true
bastille: true
doomemacs: true
emacs_wayland: true
desktop_ohmyzsh: true
intel: true
sys_microcode_update: true
Expand Down
3 changes: 3 additions & 0 deletions roles/emacs/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---

emacs_wayland: false
6 changes: 5 additions & 1 deletion roles/emacs/meta/argument_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,8 @@ argument_specs:
author:
- charlesrocket

options: {}
options:
emacs_wayland:
description: Use Wayland build.
type: bool
default: false
5 changes: 3 additions & 2 deletions roles/emacs/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
---

- name: Ensure Emacs is installed
- name:

Check failure on line 3 in roles/emacs/tasks/main.yml

View workflow job for this annotation

GitHub Actions / lint

name[template]

Jinja templates should only be at the end of 'name'
"Ensure Emacs ({{ emacs_wayland | ternary('Wayland', 'X') }}) is installed"
community.general.pkgng:
state: present
name: emacs
name: "{{ emacs_wayland | ternary('emacs-wayland', 'emacs') }}"
autoremove: true
cached: false
become: true
Expand Down

0 comments on commit 3d9b6ec

Please sign in to comment.