feat(emacs): improve configuration
This commit is contained in:
@@ -37,7 +37,12 @@ in {
|
|||||||
services.emacs = mkIf cfg.service {
|
services.emacs = mkIf cfg.service {
|
||||||
enable = true;
|
enable = true;
|
||||||
inherit (cfg) package;
|
inherit (cfg) package;
|
||||||
|
defaultEditor = true;
|
||||||
startWithUserSession = "graphical";
|
startWithUserSession = "graphical";
|
||||||
|
client = {
|
||||||
|
enable = true;
|
||||||
|
arguments = ["-c" "-a" "${cfg.package}/bin/emacs"];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
xdg.desktopEntries.mu4e = mkIf cfg.mu4eMime {
|
xdg.desktopEntries.mu4e = mkIf cfg.mu4eMime {
|
||||||
|
|||||||
@@ -58,7 +58,6 @@
|
|||||||
|
|
||||||
home = {
|
home = {
|
||||||
sessionVariables = {
|
sessionVariables = {
|
||||||
EDITOR = "${config.home.dev.editors.emacs.package}/bin/emacsclient -c -a ${config.home.dev.editors.emacs.package}/bin/emacs";
|
|
||||||
LAUNCH_EDITOR = "${launchWithEmacsclient}/bin/launch-with-emacsclient";
|
LAUNCH_EDITOR = "${launchWithEmacsclient}/bin/launch-with-emacsclient";
|
||||||
SUDO_ASKPASS = "${askpass}/bin/askpass";
|
SUDO_ASKPASS = "${askpass}/bin/askpass";
|
||||||
LSP_USE_PLISTS = "true";
|
LSP_USE_PLISTS = "true";
|
||||||
|
|||||||
Reference in New Issue
Block a user