Make Emacs the default for plaintext files

This commit is contained in:
Andreas Zweili 2023-06-12 09:42:59 +02:00
parent ea5ca4f856
commit b392b42762
1 changed files with 10 additions and 0 deletions

View File

@ -127,6 +127,16 @@ in
client.enable = true;
};
xdg.mimeApps = {
enable = true;
defaultApplications = {
"application/text" = "emacsclient.desktop";
"application/textedit" = "emacsclient.desktop";
"text/anytext" = "emacsclient.desktop";
"text/plain" = "emacsclient.desktop";
};
};
programs.bash = {
enable = true;
bashrcExtra = ''