From 1f89749b299382f48e61d9777868d0f114374c23 Mon Sep 17 00:00:00 2001 From: vin Date: Mon, 6 Oct 2025 22:52:46 -0400 Subject: manage emacs packages within nix should hopefully make migration between nix and guix easier later --- home.nix | 65 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 63 insertions(+), 2 deletions(-) diff --git a/home.nix b/home.nix index 675b861..9911511 100644 --- a/home.nix +++ b/home.nix @@ -138,7 +138,7 @@ in ]; sessionVariables = { - EDITOR = "emacsclient -r"; + EDITOR = "emacsclient -c"; VISUAL = "emacsclient -t"; PAGER = "less"; LESS = "-iR"; @@ -311,7 +311,68 @@ in programs = { home-manager.enable = true; - emacs.enable = true; + emacs = { + enable = true; + extraPackages = + epkgs: with epkgs; [ + # profile startup of init.el + esup + + # the theme I use + kaolin-themes + + # fuzzy searching + orderless + # better vertical completion + vertico + + # easy to identify scopes + rainbow-delimiters + # short descriptions of commands + marginalia + # like a collection of autocomplete commands + consult + # saves pressing C-x u a lot (before I found C-/) + undo-tree + + # highlights TODO/BUG/FIXME/etc. keywords + hl-todo + # very good git + magit + magit-todos + + # better latex mode + auctex + # better pdf viewer + pdf-tools + + # I love org-mode + org + org-pdftools + org-present + org-roam + + # rss reader + elfeed + # email reader + notmuch + # better llm frontend + gptel + + # nix stuff + nix-mode + # ocaml formatting on save + ocamlformat + # rust stuff + rust-mode + + # better terminal emulation + eat + + # project tree templates + skeletor + ]; + }; git = { enable = true; -- cgit v1.2.3