Created
October 15, 2017 05:06
-
-
Save dustinlacewell-wk/cb1a0cef348c752907ef3f514ae14703 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ config, pkgs, lib, ... }: | |
with builtins; | |
let | |
buildEnv = { buildInputs = [pkgs.emacs25-nox]; }; | |
buildPath = (pkgs.runCommand "init" buildEnv '' | |
mkdir -p $out; | |
ln -s "${./init.org}" ./init.org; | |
emacs -Q --script "${assets/org-build.el}" -f make-init-el; | |
cp init.el $out/init.el; | |
'').outPath; | |
in { | |
programs.emacs = { | |
enable = true; | |
package = pkgs.emacsMacport; | |
extraPackages = epkgs: [ | |
epkgs.use-package | |
epkgs.req-package | |
epkgs.use-package-chords | |
epkgs.badger-theme | |
]; | |
}; | |
home.file.".emacs.d/init.el".source = "${buildPath}/init.el"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment