From 15318d261fca7ea6de3453e2ef77860cdeabb23a Mon Sep 17 00:00:00 2001 From: Scott Jones Date: Mon, 20 Jul 2026 19:37:11 -0400 Subject: [PATCH] Install Emacs via the omarchy-emacs AUR package Point the Emacs entry in the install-editor menu at a dedicated omarchy-install-editor-emacs script, matching the pattern already used for Helix, VSCode, and Zed. The script installs the omarchy-emacs AUR package and runs its installer, which pulls in emacs-wayland, applies the theme/font integration, and enables the user emacs.service. This is the AUR-packaged approach dhh suggested on #4807 (superseding the in-tree integration proposed there), now that the package exists and is maintained on the AUR. End-user behavior is unchanged except that a freshly installed Emacs now tracks the active Omarchy theme and font out of the box. Co-Authored-By: Claude Opus 4.8 (1M context) --- bin/omarchy-install-editor-emacs | 6 ++++++ default/omarchy/omarchy-menu.jsonc | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100755 bin/omarchy-install-editor-emacs diff --git a/bin/omarchy-install-editor-emacs b/bin/omarchy-install-editor-emacs new file mode 100755 index 00000000..94e5bffb --- /dev/null +++ b/bin/omarchy-install-editor-emacs @@ -0,0 +1,6 @@ +#!/bin/bash + +# omarchy:summary=Install Emacs with Omarchy theme and font integration via the omarchy-emacs AUR package + +echo "Installing Emacs..." +omarchy-pkg-aur-add omarchy-emacs && omarchy-install-emacs diff --git a/default/omarchy/omarchy-menu.jsonc b/default/omarchy/omarchy-menu.jsonc index baa1f453..9eb4cd38 100644 --- a/default/omarchy/omarchy-menu.jsonc +++ b/default/omarchy/omarchy-menu.jsonc @@ -186,7 +186,7 @@ "install.editor.sublime": {"icon":"","label":"Sublime Text","action":"omarchy-install-and-launch 'Sublime Text' sublime-text-4 sublime_text"}, "install.editor.helix": {"icon":"","label":"Helix","action":"omarchy-launch-floating-terminal-with-presentation omarchy-install-editor-helix"}, "install.editor.vim": {"icon":"","label":"Vim","action":"omarchy-install-app Vim vim"}, - "install.editor.emacs": {"icon":"","label":"Emacs","action":"omarchy-install-app Emacs emacs-wayland && systemctl --user enable --now emacs.service"}, + "install.editor.emacs": {"icon":"","label":"Emacs","action":"omarchy-launch-floating-terminal-with-presentation omarchy-install-editor-emacs"}, "install.terminal.alacritty": {"icon":"","label":"Alacritty","action":"omarchy-launch-floating-terminal-with-presentation 'omarchy-install-terminal alacritty'"}, "install.terminal.foot": {"icon":"","label":"Foot","action":"omarchy-launch-floating-terminal-with-presentation 'omarchy-install-terminal foot'"}, "install.terminal.ghostty": {"icon":"","label":"Ghostty","action":"omarchy-launch-floating-terminal-with-presentation 'omarchy-install-terminal ghostty'"},