Files
dotfiles/home/modules/emacs.nix
T

38 lines
805 B
Nix

{ pkgs, ... }:
{
home.sessionPath = [
"$HOME/.config/emacs/bin"
];
home.packages = with pkgs; [
ripgrep
fd
findutils
cmake
nil
lua-language-server
shellcheck
shfmt
];
# Symlink doom config into place
xdg.configFile."doom" = {
source = ../../config/doom;
recursive = true;
};
# Emacs daemon service pointing directly to system Emacs
systemd.user.services.emacs = {
Unit = {
Description = "Emacs daemon";
After = [ "graphical-session.target" ];
};
Service = {
Type = "notify";
ExecStart = "/usr/bin/emacs --fg-daemon";
ExecStop = "/usr/bin/emacsclient --eval '(kill-emacs)'";
Restart = "on-failure";
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
};
}