Start emacsclient when OS starts
This commit is contained in:
parent
67ff263b5a
commit
898c6ef709
1 changed files with 13 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
{ pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
treeSitterLibraryExtension =
|
treeSitterLibraryExtension =
|
||||||
if pkgs.stdenv.hostPlatform.isDarwin then "dylib" else "so";
|
if pkgs.stdenv.hostPlatform.isDarwin then "dylib" else "so";
|
||||||
|
|
@ -103,4 +103,16 @@ in
|
||||||
yasnippet
|
yasnippet
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
launchd.agents.emacs-server = {
|
||||||
|
enable = true;
|
||||||
|
config = {
|
||||||
|
KeepAlive = true;
|
||||||
|
ProgramArguments = [
|
||||||
|
"${config.programs.emacs.package}/bin/emacs"
|
||||||
|
"--fg-daemon"
|
||||||
|
];
|
||||||
|
RunAtLoad = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue