2020-01-03 21:14:19 -08:00
|
|
|
# Emacs is my main driver. I'm the author of Doom Emacs
|
2020-01-12 15:17:17 -08:00
|
|
|
# https://github.com/hlissner/doom-emacs. This module sets it up to meet my
|
2020-01-03 21:14:19 -08:00
|
|
|
# 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
|
|
|
{
|
2020-01-12 15:17:17 -08:00
|
|
|
my = {
|
|
|
|
packages = with pkgs; [
|
2020-01-13 21:24:44 -08:00
|
|
|
## Doom dependencies
|
2020-01-12 15:17:17 -08:00
|
|
|
emacs
|
|
|
|
git
|
|
|
|
(ripgrep.override {withPCRE2 = true;})
|
2020-01-13 21:24:44 -08:00
|
|
|
|
|
|
|
## Optional dependencies
|
2020-01-12 15:17:17 -08:00
|
|
|
editorconfig-core-c # per-project style config
|
|
|
|
fd # faster projectile indexing
|
|
|
|
gnutls # for TLS connectivity
|
2020-01-13 21:24:44 -08:00
|
|
|
imagemagick # for image-dired
|
2020-01-12 15:17:17 -08:00
|
|
|
(lib.mkIf (config.programs.gnupg.agent.enable)
|
|
|
|
pinentry_emacs) # in-emacs gnupg prompts
|
|
|
|
zstd # for undo-tree compression
|
2020-01-13 21:24:44 -08:00
|
|
|
|
|
|
|
## Module dependencies
|
|
|
|
# :checkers spell
|
|
|
|
aspell
|
|
|
|
aspellDicts.en
|
|
|
|
aspellDicts.en-computers
|
|
|
|
aspellDicts.en-science
|
|
|
|
# :checkers grammar
|
|
|
|
languagetool
|
|
|
|
# :tools lookup
|
|
|
|
sqlite
|
|
|
|
# :lang cc
|
|
|
|
ccls
|
|
|
|
# :lang javascript
|
|
|
|
nodePackages.javascript-typescript-langserver
|
|
|
|
# :lang latex & :lang org (latex previews)
|
|
|
|
texlive.combined.scheme-medium
|
|
|
|
# :lang rust
|
|
|
|
rustfmt
|
|
|
|
rls
|
2020-01-12 15:17:17 -08:00
|
|
|
];
|
|
|
|
|
|
|
|
env.PATH = [ "$HOME/.emacs.d/bin" ];
|
2020-01-17 01:22:50 -08:00
|
|
|
zsh.rc = lib.readFile <config/emacs/aliases.zsh>;
|
2020-01-13 18:56:20 -08:00
|
|
|
|
|
|
|
# My emacs config is too stateful to manage with nix
|
|
|
|
init = ''
|
2020-01-12 17:42:33 -08:00
|
|
|
if [ ! -d "$HOME/.emacs.d" ]; then
|
|
|
|
${pkgs.git}/bin/git clone https://github.com/hlissner/doom-emacs "$HOME/.emacs.d"
|
|
|
|
fi
|
|
|
|
if [ ! -d "$XDG_CONFIG_HOME/doom" ]; then
|
|
|
|
${pkgs.git}/bin/git clone https://github.com/hlissner/doom-emacs-private "$XDG_CONFIG_HOME/doom"
|
|
|
|
fi
|
|
|
|
'';
|
2020-01-12 15:17:17 -08:00
|
|
|
};
|
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
|
|
|
}
|