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