feat(emacs): default editor

This commit is contained in:
2025-11-23 07:30:27 -07:00
parent afc7ae57b0
commit 0b8ff9f519
2 changed files with 15 additions and 0 deletions

View File

@@ -4,6 +4,13 @@ let cfg = config.sydnix.emacs;
in {
options.sydnix.emacs = {
enable = lib.mkEnableOption "Emacs";
defaultEditor = lib.mkOption {
description = ''
Set as default editor?
'';
default = false;
type = lib.types.bool;
};
userDir = lib.mkOption {
description = ''
The path to the Emacs user directory.
@@ -121,6 +128,13 @@ in {
version = cfg.package.version;
};
in {
# Set emacsclient as the default editor for the time being.
home.sessionVariables = {
EDITOR = "emacsclient";
VISUAL = "emacsclient";
};
programs.emacs = {
enable = true;
package = sydmacs;