feat: enable emacs on fern, add dependencies for emacs/neovim

This commit is contained in:
Ryan Yin
2024-01-02 18:21:22 +08:00
parent 5809155f4b
commit fc6f064a51
3 changed files with 11 additions and 6 deletions

View File

@@ -16,7 +16,7 @@
with lib; let
cfg = config.modules.editors.emacs;
envExtra = ''
export PATH="$XDG_CONFIG_HOME/emacs/bin:$PATH"
export PATH="${config.xdg.cacheHome}/emacs/bin:$PATH"
'';
shellAliases = {
e = "emacs";
@@ -34,13 +34,9 @@ in {
config = mkIf cfg.enable {
home.packages = with pkgs; [
## Emacs itself
binutils # native-comp needs 'as', provided by this
# 28.2 + native-comp
((emacsPackagesFor emacs-unstable-nox).emacsWithPackages
(epkgs: [
epkgs.vterm
epkgs.rime
epkgs.meow
]))
emacs-all-the-icons-fonts

View File

@@ -84,6 +84,10 @@
jsonnet-language-server
hadolint # Dockerfile linter
# -- Scheme
guile
racket-minimal
#-- Others
taplo # TOML language server / formatter / validator
nodePackages.yaml-language-server

View File

@@ -1,4 +1,4 @@
_: {
{
programs.ssh = {
enable = true;
extraConfig = ''
@@ -11,4 +11,9 @@ _: {
IdentitiesOnly yes
'';
};
modules.editors.emacs = {
enable = true;
doom.enable = true;
};
}