dotfiles/modules/editors/emacs.nix

59 lines
1.5 KiB
Nix
Raw Normal View History

2021-09-10 14:00:56 +02:00
{ config, lib, pkgs, inputs, ... }:
2021-09-09 21:55:28 +02:00
let
2021-10-31 15:22:44 +01:00
emacs = with pkgs;
2021-12-12 12:19:15 +01:00
((emacsPackagesNgGen emacsUnstableGcc).emacsWithPackages
2021-11-22 11:10:47 +01:00
(epkgs: [ epkgs.vterm epkgs.emacsql-sqlite3 ]));
2021-11-29 11:55:43 +01:00
in {
2021-10-11 11:17:44 +02:00
fonts.fonts = [ pkgs.emacs-all-the-icons-fonts ];
home-manager.users.moritz = {
2021-11-29 11:55:43 +01:00
home.sessionPath = [ "/home/moritz/.config/emacs/bin/" ];
2021-09-09 21:55:28 +02:00
programs.emacs.enable = true;
2021-10-31 15:22:44 +01:00
programs.emacs.package = emacs;
2021-09-09 21:55:28 +02:00
services.emacs.enable = true;
2021-10-31 15:22:44 +01:00
services.emacs.package = emacs;
2021-09-09 21:55:28 +02:00
2021-09-10 14:00:56 +02:00
home.packages = with pkgs; [
## Emacs itself
2021-09-15 00:41:46 +02:00
binutils # native-comp needs 'as', provided by this
2021-09-10 14:00:56 +02:00
## Doom dependencies
git
2021-09-15 00:41:46 +02:00
(ripgrep.override { withPCRE2 = true; })
gnutls # for TLS connectivity
2021-09-10 14:00:56 +02:00
## Optional dependencies
2021-09-15 00:41:46 +02:00
fd # faster projectile indexing
imagemagick # for image-dired
zstd # for undo-fu-session/undo-tree compression
2021-09-10 14:00:56 +02:00
## Module dependencies
# :checkers spell
2021-10-15 09:11:11 +02:00
# (aspellWithDicts (ds: with ds; [ en en-computers en-science de ]))
hunspell
hunspellDicts.en_GB-ize
hunspellDicts.en_US
hunspellDicts.de_DE
2021-09-10 14:00:56 +02:00
# :checkers grammar
languagetool
# :tools lookup & :lang org +roam
sqlite
2021-11-10 21:54:22 +01:00
graphviz
2021-09-10 14:00:56 +02:00
# :lang latex & :lang org (latex previews)
2021-10-17 18:54:01 +02:00
texlive.combined.scheme-full
2021-09-29 13:37:02 +02:00
# :lang nix
nixfmt # for formating nix
2021-10-31 15:22:44 +01:00
# :lang markdown
pandoc
2021-09-29 13:37:02 +02:00
# :app everywhere
xdotool
xorg.xwininfo
xclip
xorg.xprop
2021-11-18 17:49:40 +01:00
# :lang python
python-language-server
2021-09-10 14:00:56 +02:00
];
2021-09-09 21:55:28 +02:00
};
}