Re-enable emacs server using proper environment for doom

This commit is contained in:
Evie Litherland-Smith 2023-09-13 07:30:02 +01:00
parent 7d31bf8b54
commit bf49473b9d
2 changed files with 9 additions and 1 deletions

View file

@ -6,7 +6,15 @@ let
};
in {
xdg.configFile.emacs.source = doom-emacs;
systemd.user = { inherit sessionVariables; };
programs.emacs.enable = true;
services.emacs = {
enable = true;
package = config.programs.emacs.package;
defaultEditor = true;
client.enable = true;
socketActivation.enable = true;
};
home = {
inherit sessionVariables;
sessionPath = [ "$HOME/.config/emacs/bin" "$HOME/.emacs.d/bin" ];

View file

@ -88,7 +88,7 @@
bind = SUPER SHIFT, P, exec, pkill rofi || rofi -show power-menu
# Common program shortcuts
bind = SUPER, E, exec, emacs
bind = SUPER, E, exec, emacsclient -c
bind = SUPER, B, exec, pkill rofi || rofi -show filebrowser
bind = SUPER, Space, exec, pkill rofi || rofi -show combi
bind = SUPER, Return, exec, alacritty