Changed emacs package
This commit is contained in:
parent
23384c6df6
commit
c4c2a1ba80
3 changed files with 27 additions and 2 deletions
|
|
@ -57,7 +57,7 @@
|
||||||
interactiveShellInit = "nix-your-shell fish | source";
|
interactiveShellInit = "nix-your-shell fish | source";
|
||||||
loginShellInit = "nix-your-shell fish | source";
|
loginShellInit = "nix-your-shell fish | source";
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
nano = "micro";
|
emacs = "${config.home.sessionVariables.EDITOR} -nw";
|
||||||
wget = ''wget --hsts-file="$XDG_DATA_HOME/wget-hsts"'';
|
wget = ''wget --hsts-file="$XDG_DATA_HOME/wget-hsts"'';
|
||||||
};
|
};
|
||||||
functions = {
|
functions = {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
services.emacs = {
|
services.emacs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
defaultEditor = true;
|
defaultEditor = true;
|
||||||
|
package = pkgs.emacs29-pgtk;
|
||||||
socketActivation.enable = true;
|
socketActivation.enable = true;
|
||||||
client.enable = true;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -25,4 +25,29 @@
|
||||||
"/var/run/current-system/sw/share/applications/koi.desktop";
|
"/var/run/current-system/sw/share/applications/koi.desktop";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
xdg.desktopEntries.emacsd = {
|
||||||
|
name = "Emacs";
|
||||||
|
exec = "${config.services.emacs.package}/bin/emacsclient -c";
|
||||||
|
icon = "emacs";
|
||||||
|
comment = "More than just a text editor";
|
||||||
|
genericName = "Text Editor";
|
||||||
|
mimeType = [
|
||||||
|
"text/english"
|
||||||
|
"text/plain"
|
||||||
|
"text/x-makefile"
|
||||||
|
"text/x-c++hdr"
|
||||||
|
"text/x-c++src"
|
||||||
|
"text/x-chdr"
|
||||||
|
"text/x-csrc"
|
||||||
|
"text/x-java"
|
||||||
|
"text/x-moc"
|
||||||
|
"text/x-pascal"
|
||||||
|
"text/x-tcl"
|
||||||
|
"text/x-tex"
|
||||||
|
"application/x-shellscript"
|
||||||
|
"text/x-c"
|
||||||
|
"text/x-c++"
|
||||||
|
];
|
||||||
|
categories = [ "Development" "TextEditor" ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue