emacs: add raycast script to open Emacs.app with shell environment
Alan Pearce alan@alanpearce.eu
Thu, 25 Apr 2024 17:19:54 +0200
2 files changed, 16 insertions(+), 0 deletions(-)
A user/emacs/raycast-script.applescript
@@ -0,0 +1,12 @@+#!/usr/bin/osascript + +# Required parameters: +# @raycast.schemaVersion 1 +# @raycast.title Emacs +# @raycast.mode silent + +# Optional parameters: +# @raycast.icon https://www.gnu.org/software/emacs/images/emacs.png +# @raycast.packageName Emacs + +do shell script "$SHELL -c \"open -a ~/.nix-profile/Applications/Emacs.app\""
M user/settings/emacs.nix → user/settings/emacs.nix
@@ -175,6 +175,10 @@ }; home.packages = with pkgs; [ editorScript ]; + xdg.configFile."raycast/scripts/Emacs" = { + executable = true; + source = ../emacs/raycast-script.applescript; + }; xdg.configFile."emacs/early-init.el" = { source = ../emacs/early-init.el; };