dotfiles/modules/editors/emacs.nix

73 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-14 12:25:02 +01:00
((emacsPackagesNgGen emacsGcc).emacsWithPackages
2021-11-22 11:10:47 +01:00
(epkgs: [ epkgs.vterm epkgs.emacsql-sqlite3 ]));
2022-02-11 22:25:07 +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/" ];
2022-02-15 16:40:23 +01:00
services.emacs = {
enable = true;
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
2022-02-11 22:25:07 +01:00
emacs
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
2022-02-11 22:25:07 +01:00
2021-09-10 14:00:56 +02:00
# :checkers grammar
languagetool
2022-02-11 22:25:07 +01:00
2021-09-10 14:00:56 +02:00
# :tools lookup & :lang org +roam
sqlite
2022-02-07 15:30:26 +01:00
wordnet
2021-11-10 21:54:22 +01:00
graphviz
2022-02-11 22:25:07 +01:00
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
2022-02-11 22:25:07 +01:00
2021-09-29 13:37:02 +02:00
# :lang nix
nixfmt # for formating nix
2022-02-11 22:25:07 +01:00
2021-10-31 15:22:44 +01:00
# :lang markdown
pandoc
2022-02-11 22:25:07 +01:00
2021-09-29 13:37:02 +02:00
# :app everywhere
xdotool
xorg.xwininfo
xclip
xorg.xprop
2022-02-11 22:25:07 +01:00
2021-11-18 17:49:40 +01:00
# :lang python
2022-02-20 22:56:53 +01:00
nodePackages.pyright
python-dev
2022-02-15 16:40:23 +01:00
# :email
mu
isync
2021-09-10 14:00:56 +02:00
];
2021-09-09 21:55:28 +02:00
};
}