Start emacsclient when OS starts

This commit is contained in:
Tobias Ostner 2026-04-25 10:10:44 +02:00
parent 67ff263b5a
commit 898c6ef709

View file

@ -1,4 +1,4 @@
{ pkgs, lib, ... }:
{ config, pkgs, lib, ... }:
let
treeSitterLibraryExtension =
if pkgs.stdenv.hostPlatform.isDarwin then "dylib" else "so";
@ -103,4 +103,16 @@ in
yasnippet
];
};
launchd.agents.emacs-server = {
enable = true;
config = {
KeepAlive = true;
ProgramArguments = [
"${config.programs.emacs.package}/bin/emacs"
"--fg-daemon"
];
RunAtLoad = true;
};
};
}