Vanilla Emacs

This commit is contained in:
Andrea Ciceri 2023-02-03 09:27:41 +01:00
parent b89e750e4b
commit a0314c11a0
No known key found for this signature in database
GPG key ID: A1FC89532D1C5654
2 changed files with 64 additions and 1 deletions

View file

@ -0,0 +1,61 @@
{
config,
pkgs,
...
}: let
# use same version as Doom Emacs
vanillaEmacs = (pkgs.emacsPackagesFor config.programs.doom-emacs.emacsPackage).emacsWithPackages (epkgs:
with epkgs; [
meow
ef-themes
vertico
marginalia
consult
orderless
embark
embark-consult
fira-code-mode
vterm
setup
magit
magit-delta
# git-gutter
# git-gutter-fringe
corfu
corfu-terminal
cape
which-key
nix-mode
envrc
flycheck
flycheck-posframe
flycheck-inline
consult-flycheck
popper
# choose one
lispy
paredit
tree-sitter
tree-sitter-langs
yaml-mode
hl-todo
]);
vanillaEmacsBin = pkgs.writeScriptBin "vanillaEmacs" ''
${vanillaEmacs}/bin/emacs --init-directory ~/.vanilla-emacs.d $@
'';
in {
home.packages = [
vanillaEmacsBin
(
pkgs.makeDesktopItem {
name = "vanilla-emacs";
exec = "vanillaEmacs %u";
comment = "Vanilla Emacs";
desktopName = "vanilla-emacs";
type = "Application";
mimeTypes = [];
}
)
];
}

View file

@ -35,12 +35,12 @@
enable = true;
autologin = true;
modules = [
"chrome"
"cura"
"digikam"
"discord"
"element"
"emacs"
"vanilla-emacs"
"email"
"firefox"
"git"
@ -48,6 +48,7 @@
"helix"
"mopidy"
"mpv"
"openscad"
"password-store"
"qutebrowser"
"shell"
@ -57,6 +58,7 @@
"vscode"
"xdg"
"zathura"
"chrome"
];
packages = with pkgs; [
comma