helm/modules/editors/emacs.nix
Henrik Lissner e00530a4be
Install texlive medium
scheme-tetex doesn't include dvipng and some needed latex packages.
2020-05-12 17:46:03 -04:00

63 lines
1.7 KiB
Nix

# Emacs is my main driver. I'm the author of Doom Emacs
# https://github.com/hlissner/doom-emacs. This module sets it up to meet my
# particular Doomy needs.
{ config, options, lib, pkgs, ... }:
with lib;
{
options.modules.editors.emacs = {
enable = mkOption {
type = types.bool;
default = false;
};
};
config = mkIf config.modules.editors.emacs.enable {
my = {
packages = with pkgs; [
## Doom dependencies
emacsUnstable
git
(ripgrep.override {withPCRE2 = true;})
gnutls # for TLS connectivity
## Optional dependencies
fd # faster projectile indexing
imagemagick # for image-dired
(lib.mkIf (config.programs.gnupg.agent.enable)
pinentry_emacs) # in-emacs gnupg prompts
zstd # for undo-fu-session/undo-tree compression
## Module dependencies
# :checkers spell
aspell
aspellDicts.en
aspellDicts.en-computers
aspellDicts.en-science
# :checkers grammar
languagetool
# :tools editorconfig
editorconfig-core-c # per-project style config
# :tools lookup & :lang org +roam
sqlite
# :lang cc
ccls
# :lang javascript
nodePackages.javascript-typescript-langserver
# :lang latex & :lang org (latex previews)
texlive.combined.scheme-medium
# :lang rust
rustfmt
rls
];
env.PATH = [ "$XDG_CONFIG_HOME/emacs/bin" ];
zsh.rc = lib.readFile <config/emacs/aliases.zsh>;
};
fonts.fonts = [
pkgs.emacs-all-the-icons-fonts
];
};
}