Skip to content

Instantly share code, notes, and snippets.

@adisbladis
Created September 22, 2018 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adisbladis/4b02c703a1c8d067f17349ac006e879d to your computer and use it in GitHub Desktop.
Save adisbladis/4b02c703a1c8d067f17349ac006e879d to your computer and use it in GitHub Desktop.
An example of how to set up a custom emacs with packages from nixpkgs
with import <nixpkgs> {};
let
# An example of how to get xwidgets rather than gtk
# overridenEmacs = emacs26.override { withXwidgets = true; };
overridenEmacs = emacs26;
emacsPkgs = pkgs.emacsPackagesNgGen overridenEmacs;
emacsWithPackages = emacsPkgs.emacsWithPackages;
in emacsWithPackages(epkgs: with epkgs; [
buttercup
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment