fixes focus issue when starting emacsclient via raycast

This commit is contained in:
Dennis Schoepf 2025-09-13 22:47:54 +02:00
parent 0209b67930
commit bf831df642
3 changed files with 7 additions and 0 deletions

2
.dir-locals.el Normal file
View file

@ -0,0 +1,2 @@
;; Global options
((nil . ((compile-command . "sudo just mre"))))

View file

@ -64,6 +64,7 @@
# Packages necessary for vterm # Packages necessary for vterm
cmake cmake
libtool libtool
emacs-lsp-booster
]; ];
# Homebrew # Homebrew

View file

@ -14,3 +14,7 @@
# @raycast.authorURL https://raycast.com/dnsc # @raycast.authorURL https://raycast.com/dnsc
emacsclient -a "" -c emacsclient -a "" -c
gsleep 1s
client_window=$(aerospace list-windows --workspace focused | gcut -d " " -f1)
aerospace focus --window-id $client_window