Closed suvasanket closed 4 months ago
Did you ever come to a resolution to this? I'm running into the same issue (except the frame spawning never worked).
I actually have it working now. I'm actually running a script instead. The script looks like:
#/usr/bin/env bash
/run/current-system/sw/bin/emacsclient -c --no-wait --socket=$(lsof -c emacs | grep server | grep -E -o '[^[:blank:]]*$' | tail -n 1)
worth noting I'm on nix. The problem I was encountering was that emacsclient wasn't in my path.
Great, just a tip if you want to open the client right from the launchpad or any app launcher like alfred you can create a automator application workflow then you can set a keybind to open that or just use it like any other app
Refer to my config if you are using Nix:
file."${config.xdg.configHome}/aerospace/aerospace.toml".text = ''
# Some configs...
# open programs
[mode.programs.binding]
e = [ 'exec-and-forget ${pkgs.emacs}/bin/emacsclient -ca ""', 'mode main' ]
f = [ 'exec-and-forget open -na "Firefox Developer Edition"', 'mode main' ]
a = [ 'exec-and-forget open -na Alacritty', 'mode main' ]
enter = 'mode main'
esc = 'mode main'
# Some configs...
''
I'm on MacOS nix-darwin + nix home-manager setting. Emacs is installed through nix. It works for me.
Refer to my config if you are using Nix:
file."${config.xdg.configHome}/aerospace/aerospace.toml".text = '' # Some configs... # open programs [mode.programs.binding] e = [ 'exec-and-forget ${pkgs.emacs}/bin/emacsclient -ca ""', 'mode main' ] f = [ 'exec-and-forget open -na "Firefox Developer Edition"', 'mode main' ] a = [ 'exec-and-forget open -na Alacritty', 'mode main' ] enter = 'mode main' esc = 'mode main' # Some configs... ''
I'm on MacOS nix-darwin + nix home-manager setting. Emacs is installed through nix. It works for me.
@lentil32 did you install aerospace with nix? If so can you share your flake file?
Refer to my config if you are using Nix:
file."${config.xdg.configHome}/aerospace/aerospace.toml".text = '' # Some configs... # open programs [mode.programs.binding] e = [ 'exec-and-forget ${pkgs.emacs}/bin/emacsclient -ca ""', 'mode main' ] f = [ 'exec-and-forget open -na "Firefox Developer Edition"', 'mode main' ] a = [ 'exec-and-forget open -na Alacritty', 'mode main' ] enter = 'mode main' esc = 'mode main' # Some configs... ''
I'm on MacOS nix-darwin + nix home-manager setting. Emacs is installed through nix. It works for me.
@lentil32 did you install aerospace with nix? If so can you share your flake file?
I installed AeroSpace with brew
, but it's declaratively configured in apps.nix
. Please refer to my repository:
https://github.com/lentil32/dotfiles-nix/blob/main/modules/apps.nix
https://github.com/lentil32/dotfiles-nix/blob/main/modules/apps.nix @lentil32 thank you!
so i'm using emacs with
this for running the daemon and to open a new frame
everything was working just fine but after some restarts of aerospace it doesn't seems to opening the "emacs frame" anymore the daemon is running fine though