-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathemacs.nix
39 lines (34 loc) · 898 Bytes
/
emacs.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{ pkgs ? import <nixpkgs> {} }:
let
myEmacs = pkgs.lib.overrideDerivation (pkgs.emacs25.override {
withGTK3 = true;
withGTK2 = false;
withXwidgets = true;
}) (attrs: {});
linuxEmacsWithPackages = (pkgs.emacsPackagesNgGen myEmacs).emacsWithPackages;
macEmacsWithPackages = (pkgs.emacsPackagesNgGen pkgs.emacs25Macport).emacsWithPackages;
myEmacsPackages = epkgs: (with epkgs.melpaPackages; [
bbdb
company
emms
exec-path-from-shell
helm
htmlize
jabber
magit
multiple-cursors
nix-mode
pandoc
paredit-everywhere
pdf-tools
restclient
spaceline
zenburn-theme
]) ++ (with epkgs.orgPackages; [
org-plus-contrib
]);
# install one of these with "nix-env -f /path/to/emacs.nix -iA emacsLinux"
in {
emacsLinux = linuxEmacsWithPackages (myEmacsPackages);
emacsMac = macEmacsWithPackages (myEmacsPackages);
}