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-03-28 22:48:43 -07:00
|
|
|
{ config, options, lib, pkgs, ... }:
|
|
|
|
with lib;
|
2019-08-06 10:56:54 -07:00
|
|
|
{
|
2020-03-28 22:48:43 -07:00
|
|
|
options.modules.editors.emacs = {
|
|
|
|
enable = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
|
|
|
};
|
|
|
|
};
|
2020-01-13 21:24:44 -08:00
|
|
|
|
2020-03-28 22:48:43 -07:00
|
|
|
config = mkIf config.modules.editors.emacs.enable {
|
|
|
|
my = {
|
|
|
|
packages = with pkgs; [
|
|
|
|
## Doom dependencies
|
2020-04-12 18:01:45 -07:00
|
|
|
emacsUnstable
|
2020-03-28 22:48:43 -07:00
|
|
|
git
|
|
|
|
(ripgrep.override {withPCRE2 = true;})
|
2020-04-22 17:41:34 -07:00
|
|
|
gnutls # for TLS connectivity
|
2020-01-13 21:24:44 -08:00
|
|
|
|
2020-03-28 22:48:43 -07:00
|
|
|
## Optional dependencies
|
|
|
|
fd # faster projectile indexing
|
|
|
|
imagemagick # for image-dired
|
|
|
|
(lib.mkIf (config.programs.gnupg.agent.enable)
|
|
|
|
pinentry_emacs) # in-emacs gnupg prompts
|
2020-04-22 17:41:34 -07:00
|
|
|
zstd # for undo-fu-session/undo-tree compression
|
2020-01-12 15:17:17 -08:00
|
|
|
|
2020-03-28 22:48:43 -07:00
|
|
|
## Module dependencies
|
|
|
|
# :checkers spell
|
|
|
|
aspell
|
|
|
|
aspellDicts.en
|
|
|
|
aspellDicts.en-computers
|
|
|
|
aspellDicts.en-science
|
|
|
|
# :checkers grammar
|
|
|
|
languagetool
|
2020-04-22 17:41:34 -07:00
|
|
|
# :tools editorconfig
|
|
|
|
editorconfig-core-c # per-project style config
|
|
|
|
# :tools lookup & :lang org +roam
|
2020-03-28 22:48:43 -07:00
|
|
|
sqlite
|
|
|
|
# :lang cc
|
|
|
|
ccls
|
|
|
|
# :lang javascript
|
|
|
|
nodePackages.javascript-typescript-langserver
|
|
|
|
# :lang latex & :lang org (latex previews)
|
2020-04-22 17:41:34 -07:00
|
|
|
texlive.combined.scheme-tetex
|
2020-03-28 22:48:43 -07:00
|
|
|
# :lang rust
|
|
|
|
rustfmt
|
|
|
|
rls
|
|
|
|
];
|
2019-08-06 10:56:54 -07:00
|
|
|
|
2020-04-01 16:11:42 -07:00
|
|
|
env.PATH = [ "$XDG_CONFIG_HOME/emacs/bin" ];
|
2020-03-28 22:48:43 -07:00
|
|
|
zsh.rc = lib.readFile <config/emacs/aliases.zsh>;
|
|
|
|
};
|
|
|
|
|
|
|
|
fonts.fonts = [
|
|
|
|
pkgs.emacs-all-the-icons-fonts
|
|
|
|
];
|
|
|
|
};
|
2019-08-06 10:56:54 -07:00
|
|
|
}
|