helm/modules/editors/emacs.nix

38 lines
1.3 KiB
Nix
Raw Normal View History

2020-01-03 21:14:19 -08:00
# Emacs is my main driver. I'm the author of Doom Emacs
# <https://github.com/hlissner/doom-emacs>. This module sets it up to meed my
# particular Doomy needs.
2019-08-06 10:56:54 -07:00
2020-01-03 21:14:19 -08:00
{ config, lib, pkgs, ... }:
2019-08-06 10:56:54 -07:00
{
environment.systemPackages = with pkgs; [
2020-01-03 21:14:19 -08:00
# Doom dependencies
2019-12-08 23:56:32 -08:00
emacs
2020-01-03 21:14:19 -08:00
git
(ripgrep.override {withPCRE2 = true;})
# Optional dependencies
editorconfig-core-c # per-project style config
fd # faster projectile indexing
imagemagick # for image-dired
gnutls # for TLS connectivity
(lib.mkIf (config.programs.gnupg.agent.enable)
pinentry_emacs) # in-emacs gnupg prompts
zstd # for undo-tree compression
ffmpeg # for screen recording emacs
# Module dependencies
2019-08-06 10:56:54 -07:00
sqlite # :tools (lookup +docsets)
texlive.combined.scheme-medium # :lang org -- for latex previews
ccls # :lang (cc +lsp)
nodePackages.javascript-typescript-langserver # :lang (javascript +lsp)
2020-01-03 21:14:19 -08:00
rls # :lang (rust +lsp)
2019-08-06 10:56:54 -07:00
];
2020-01-03 21:14:19 -08:00
fonts.fonts = [
pkgs.emacs-all-the-icons-fonts
];
2019-08-06 10:56:54 -07:00
home.xdg.configFile = {
"zsh/rc.d/aliases.emacs.zsh".source = <config/emacs/aliases.zsh>;
"zsh/rc.d/env.emacs.zsh".source = <config/emacs/env.zsh>;
2019-08-06 10:56:54 -07:00
};
}