Reformat emacs config

This commit is contained in:
Julian Mutter 2024-10-06 14:14:23 +02:00
parent f07ab92268
commit 5500164669

View File

@ -34,44 +34,47 @@ in
config = mkIf cfg.enable { config = mkIf cfg.enable {
home.sessionPath = [ "/home/julian/.config/emacs/bin" ]; home.sessionPath = [ "/home/julian/.config/emacs/bin" ];
home.packages = with pkgs; [ home.packages =
binutils # native-comp needs 'as', provided by this with pkgs;
[
binutils # native-comp needs 'as', provided by this
## Doom dependencies ## Doom dependencies
git git
(ripgrep.override { withPCRE2 = true; }) (ripgrep.override { withPCRE2 = true; })
## Optional dependencies ## Optional dependencies
fd # faster projectile indexing fd # faster projectile indexing
imagemagick # for image-dired imagemagick # for image-dired
zstd # for undo-fu-session/undo-tree compression zstd # for undo-fu-session/undo-tree compression
## Module dependencies ## Module dependencies
(aspellWithDicts ( (aspellWithDicts (
ds: with ds; [ ds: with ds; [
en en
en-computers en-computers
en-science en-science
de de
] ]
)) ))
sqlite sqlite
# Code formatters for use with doom emacs # Code formatters for use with doom emacs
nixfmt-rfc-style # nix nixfmt-rfc-style # nix
dockfmt # docker dockfmt # docker
google-java-format # java google-java-format # java
black # python black # python
unstable.rustfmt # rust rustfmt # rust
shfmt shfmt
pyright pyright
graphviz graphviz
# Lsps for use with doom emacs # Lsps for use with doom emacs
# neocmakelsp # cmake # neocmakelsp # cmake
emacs-all-the-icons-fonts emacs-all-the-icons-fonts
] ++ lib.optional config.modules.non-nixos.is-nixos emacs; ]
++ lib.optional config.modules.non-nixos.is-nixos emacs;
home.activation.installDoomEmacs = lib.home-manager.hm.dag.entryAfter [ "writeBoundary" ] '' home.activation.installDoomEmacs = lib.home-manager.hm.dag.entryAfter [ "writeBoundary" ] ''
if [ ! -d "/home/julian/.config/emacs" ]; then if [ ! -d "/home/julian/.config/emacs" ]; then