feat: remove emacs-overlay, use stable version instead

fix: emacsclient not found
feat: use nom build to show build details in debug mode
This commit is contained in:
Ryan Yin
2024-01-03 22:49:23 +08:00
parent f68fe49720
commit b0c1301367
5 changed files with 59 additions and 146 deletions

View File

@@ -75,27 +75,27 @@ in {
};
}
(mkIf pkgs.stdenv.isLinux {
(mkIf pkgs.stdenv.isLinux (
let emacsPkg = pkgs.emacs29-pgtk; in
{
home.packages = [emacsPkg];
services.emacs = {
enable = true;
package = with pkgs; ((emacsPackagesFor emacs-unstable-pgtk).emacsWithPackages (epkgs: [
epkgs.vterm
]));
package = emacsPkg;
client.enable = true;
startWithUserSession = true;
};
})
}))
(mkIf pkgs.stdenv.isDarwin {
(mkIf pkgs.stdenv.isDarwin (
let emacsPkg = pkgs.emacs29-macport; in
{
home.packages = [emacsPkg];
launchd.enable = true;
launchd.agents.emacs = {
enable = true;
config = {
ProgramArguments = with pkgs; let
emacsPkg = (emacsPackagesFor emacs-unstable).emacsWithPackages (epkgs: [
epkgs.vterm
]);
in [
ProgramArguments = [
"${pkgs.bash}/bin/bash"
"-l"
"-c"
@@ -107,6 +107,6 @@ in {
KeepAlive = true;
};
};
})
}))
]);
}