From 15318d261fca7ea6de3453e2ef77860cdeabb23a Mon Sep 17 00:00:00 2001 From: Scott Jones Date: Mon, 20 Jul 2026 19:37:11 -0400 Subject: [PATCH 1/2] 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 0000000000..94e5bffb21 --- /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 baa1f453be..9eb4cd38ab 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'"}, From b1499e295018ae7b78294f5a441b8a52f7e610bb Mon Sep 17 00:00:00 2001 From: Scott Jones Date: Wed, 22 Jul 2026 18:44:51 -0400 Subject: [PATCH 2/2] Open Emacs after installing from the menu Match the other editors (VSCode/Zed/Cursor) by launching once install finishes. Uses gtk-launch emacsclient so it opens a frame on the emacs.service daemon that omarchy-install-emacs just started, rather than spawning a second standalone instance. Co-Authored-By: Claude Opus 4.8 (1M context) --- bin/omarchy-install-editor-emacs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bin/omarchy-install-editor-emacs b/bin/omarchy-install-editor-emacs index 94e5bffb21..d932d04d9c 100755 --- a/bin/omarchy-install-editor-emacs +++ b/bin/omarchy-install-editor-emacs @@ -4,3 +4,6 @@ echo "Installing Emacs..." omarchy-pkg-aur-add omarchy-emacs && omarchy-install-emacs + +# emacsclient opens a frame on the running daemon, not a second Emacs +setsid gtk-launch emacsclient