feat(emacs): default editor
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user