From bf831df642f5c30ce13f340508953be67fb67a5f Mon Sep 17 00:00:00 2001 From: Dennis Date: Sat, 13 Sep 2025 22:47:54 +0200 Subject: [PATCH] fixes focus issue when starting emacsclient via raycast --- .dir-locals.el | 2 ++ hosts/dnsc-air/default.nix | 1 + modules/raycast/scripts/emacsclient.sh | 4 ++++ 3 files changed, 7 insertions(+) create mode 100644 .dir-locals.el diff --git a/.dir-locals.el b/.dir-locals.el new file mode 100644 index 0000000..c03e037 --- /dev/null +++ b/.dir-locals.el @@ -0,0 +1,2 @@ +;; Global options +((nil . ((compile-command . "sudo just mre")))) diff --git a/hosts/dnsc-air/default.nix b/hosts/dnsc-air/default.nix index 2d259c1..c9ebb12 100644 --- a/hosts/dnsc-air/default.nix +++ b/hosts/dnsc-air/default.nix @@ -64,6 +64,7 @@ # Packages necessary for vterm cmake libtool + emacs-lsp-booster ]; # Homebrew diff --git a/modules/raycast/scripts/emacsclient.sh b/modules/raycast/scripts/emacsclient.sh index ab5ceaf..90a0c99 100755 --- a/modules/raycast/scripts/emacsclient.sh +++ b/modules/raycast/scripts/emacsclient.sh @@ -14,3 +14,7 @@ # @raycast.authorURL https://raycast.com/dnsc emacsclient -a "" -c +gsleep 1s + +client_window=$(aerospace list-windows --workspace focused | gcut -d " " -f1) +aerospace focus --window-id $client_window