mio-ops/profiles/emacs.nix

36 lines
1.1 KiB
Nix
Raw Normal View History

2022-03-07 14:26:15 +00:00
/*
This is a nix expression to build Emacs and some Emacs packages I like
from source on any distribution where Nix is installed. This will install
all the dependencies from the nixpkgs repository and build the binary files
without interfering with the host distribution.
To build the project, type the following from the current directory:
$ nix-build emacs.nix
To run the newly compiled executable:
$ ./result/bin/emacs
*/
{pkgs ? import <nixpkgs> {}}: let
2021-11-16 04:57:23 +00:00
myEmacs = pkgs.emacs;
emacsWithPackages = (pkgs.emacsPackagesNgGen myEmacs).emacsWithPackages;
2022-03-07 14:26:15 +00:00
in
emacsWithPackages (epkgs:
(with epkgs.melpaStablePackages; [
magit # ; Integrate git <C-x g>
zerodark-theme # ; Nicolas' theme
])
++ (with epkgs.melpaPackages; [
2021-11-16 04:57:23 +00:00
#undo-tree # ; <C-x u> to show the undo tree
#zoom-frm # ; increase/decrease font size for all buffers %lt;C-x C-+>
2022-03-07 14:26:15 +00:00
])
++ (with epkgs.elpaPackages; [
2021-11-16 04:57:23 +00:00
auctex # ; LaTeX mode
beacon # ; highlight my cursor when scrolling
nameless # ; hide current package name everywhere in elisp code
2022-03-07 14:26:15 +00:00
])
++ [
2021-11-16 04:57:23 +00:00
pkgs.notmuch # From main packages set
])