Added doomemacs to configuration

This commit is contained in:
Aleksandr Lebedev 2025-01-15 00:14:11 +01:00
parent 7a14aff779
commit 22c9b99399
6 changed files with 88 additions and 0 deletions

View file

@ -0,0 +1,42 @@
{
config,
pkgs,
lib,
inputs,
...
}: let
emacs = pkgs.emacs;
in {
services.emacs.enable = true;
services.emacs.startWithGraphical = true;
services.emacs.install = true;
services.emacs.package = emacs; #pkgs.emacs-unstable
environment.systemPackages = with pkgs; [
git
emacs
ripgrep
fd
coreutils
clang
(pkgs.writeShellScriptBin "doom-install" ''
${pkgs.git}/bin/git clone --depth 1 https://github.com/doomemacs/doomemacs ~/.emacs.d
${pkgs.git}/bin/git clone https://github.com/KyleKrein/doomemacs.git ~/.doom.d
~/.emacs.d/bin/doom install
~/.emacs.d/bin/doom sync
pidof emacs || ${emacs}/bin/emacs --daemon &
'')
(pkgs.writeShellScriptBin "doom-sync" ''
~/.emacs.d/bin/doom sync
'')
(pkgs.writeShellScriptBin "doom-upgrade" ''
~/.emacs.d/bin/doom upgrade
'')
(pkgs.writeShellScriptBin "doom" ''
${emacs}/bin/emacsclient -c
'')
];
nixpkgs.overlays = [
inputs.emacs-overlay.overlays.default
];
}