Emacs learning curve is too steep, back to vim
This commit is contained in:
parent
c4c2a1ba80
commit
e4ab300f22
5 changed files with 8 additions and 40 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
{ ... }:
|
{ ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
imports = [ ./home.nix ./programs.nix ./services.nix ];
|
imports = [ ./home.nix ./programs.nix ];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,10 @@
|
||||||
username = "user";
|
username = "user";
|
||||||
homeDirectory = "/home/user";
|
homeDirectory = "/home/user";
|
||||||
stateVersion = "22.05";
|
stateVersion = "22.05";
|
||||||
sessionVariables = { TZ = ":/etc/localtime"; };
|
sessionVariables = {
|
||||||
|
TZ = ":/etc/localtime";
|
||||||
|
EDITOR = "nvim";
|
||||||
|
};
|
||||||
file = {
|
file = {
|
||||||
".config/starship.toml".source =
|
".config/starship.toml".source =
|
||||||
"${inputs.dotfiles}/.config/starship.toml";
|
"${inputs.dotfiles}/.config/starship.toml";
|
||||||
|
|
|
||||||
|
|
@ -47,9 +47,8 @@
|
||||||
mkparents = true;
|
mkparents = true;
|
||||||
scrollbar = true;
|
scrollbar = true;
|
||||||
tabstospaces = true;
|
tabstospaces = true;
|
||||||
tabsize = 4;
|
tabsize = 2;
|
||||||
colorscheme = "simple";
|
colorscheme = "simple";
|
||||||
relativeruler = true;
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
fish = {
|
fish = {
|
||||||
|
|
@ -57,7 +56,8 @@
|
||||||
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 = {
|
||||||
emacs = "${config.home.sessionVariables.EDITOR} -nw";
|
vi = "nvim";
|
||||||
|
vim = "nvim";
|
||||||
wget = ''wget --hsts-file="$XDG_DATA_HOME/wget-hsts"'';
|
wget = ''wget --hsts-file="$XDG_DATA_HOME/wget-hsts"'';
|
||||||
};
|
};
|
||||||
functions = {
|
functions = {
|
||||||
|
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
{ inputs, config, pkgs, lib, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
services.emacs = {
|
|
||||||
enable = true;
|
|
||||||
defaultEditor = true;
|
|
||||||
package = pkgs.emacs29-pgtk;
|
|
||||||
socketActivation.enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -25,29 +25,4 @@
|
||||||
"/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