helm/modules/editors/emacs.nix

28 lines
914 B
Nix
Raw Normal View History

2019-08-06 10:56:54 -07:00
{ config, lib, pkgs, ... }:
2019-09-06 21:29:48 -07:00
let unstable = import <nixpkgs-unstable> {};
in
2019-08-06 10:56:54 -07:00
{
environment.systemPackages = with pkgs; [
(lib.mkIf (config.programs.gnupg.agent.enable) pinentry_emacs)
2019-10-17 16:57:27 -07:00
zstd
2019-08-06 10:56:54 -07:00
editorconfig-core-c
(ripgrep.override {withPCRE2 = true;})
# Doom Emacs + dependencies
2019-09-06 21:29:48 -07:00
unstable.emacs
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)
];
fonts.fonts = [ pkgs.emacs-all-the-icons-fonts ];
home-manager.users.hlissner.xdg.configFile = {
# Avoid "emacs" because Emacs HEAD respects XDG conventions and we're only
# using this directory to store extra zsh config for my nix dotfiles.
"emacscfg" = { source = <config/emacs>; recursive = true; };
2019-08-06 10:56:54 -07:00
};
}