<commit_before>{ config, pkgs, ... }:

let

  myEmacs = pkgs.emacs;

  emacsWithPackages = (pkgs.emacsPackagesNgGen myEmacs).emacsWithPackages;

  package = emacsWithPackages (epkgs: with {
    elpa = epkgs.elpaPackages;
    melpa = epkgs.melpaPackages;
    melpaStable = epkgs.melpaStablePackages;
    org = epkgs.orgPackages;
  }; (with elpa; [
  ]) ++ (with melpa; [
    clj-refactor
    clojure-mode
    erlang
    fish-mode
    fill-column-indicator
    hl-todo
    htmlize
    idris-mode
    magit
    nix-mode
    paredit
    rainbow-delimiters
    whitespace-cleanup-mode
  ]) ++ (with melpaStable; [
    ess
    monokai-theme
  ]) ++ (with org; [
  ]));

in

{

  environment = {

    shellAliases = {
      e = ''emacsclient -cna ""'';
      et  = ''emacsclient -cta ""'';
    };

    systemPackages = with pkgs; [
      aspell
    ] ++ (with aspellDicts; [
      en<commit_msg>[nixpks] emacs: add better-defaults, crux, and multiple-cursors<commit_after>{ config, pkgs, ... }:

let

  myEmacs = pkgs.emacs;

  emacsWithPackages = (pkgs.emacsPackagesNgGen myEmacs).emacsWithPackages;

  package = emacsWithPackages (epkgs: with {
    elpa = epkgs.elpaPackages;
    melpa = epkgs.melpaPackages;
    melpaStable = epkgs.melpaStablePackages;
    org = epkgs.orgPackages;
  }; (with elpa; [
  ]) ++ (with melpa; [
    better-defaults
    clj-refactor
    clojure-mode
    crux
    erlang
    fish-mode
    fill-column-indicator
    hl-todo
    htmlize
    idris-mode
    magit
    multiple-cursors
    nix-mode
    paredit
    rainbow-delimiters
    whitespace-cleanup-mode
  ]) ++ (with melpaStable; [
    ess
    monokai-theme
  ]) ++ (with org; [
  ]));

in

{

  environment = {

    shellAliases = {
      e = ''emacsclient -cna ""'';
      et  = ''emacsclient -cta ""'';
    };

    systemPackages = with pkgs; [
      aspell
    ] ++ (with aspellDicts; [
      en
{'fraction_non_alphanumeric': 0.1242004264392324, 'fraction_numerical': 0.0, 'mean_word_length': 2.388086642599278, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6058587', 'n_tokens_mistral': 749, 'n_tokens_neox': 722, 'n_words': 128}