Skip to content

Instantly share code, notes, and snippets.

@asconix
Created November 14, 2019 07: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 asconix/b153bfbab645b2f8ec01933c4dc7f0cf to your computer and use it in GitHub Desktop.
Save asconix/b153bfbab645b2f8ec01933c4dc7f0cf to your computer and use it in GitHub Desktop.
{ pkgs }:
with pkgs; with emacsPackagesNg;
let
emacsWithPackages = (emacsPackagesNgGen emacs).emacsWithPackages;
# As the EXWM README points out, XELB should be built from source if EXWM is.
xelb = melpaBuild {
pname = "xelb";
ename = "xelb";
version = "0.17";
recipe = builtins.toFile "recipe" ''
(xelb :fetcher github
:repo "ch11ng/xelb")
'';
packageRequires = [ cl-generic emacs ];
src = fetchFromGitHub {
owner = "ch11ng";
repo = "xelb";
rev = "01d06865d45a996a0eecf01a7a8700d338bb6889";
sha256 = "094366n6k71bnsg79kk9hvwq6slq6a6a2amlmdmn3746lfqynsxg";
};
};
# EXWM pinned to a newer version than what is released
exwm = melpaBuild {
pname = "exwm";
ename = "exwm";
version = "0.23";
recipe = builtins.toFile "recipe" ''
(exwm :fetcher github
:repo "ch11ng/exwm")
'';
packageRequires = [ xelb ];
src = fetchFromGitHub {
owner = "ch11ng";
repo = "exwm";
rev = "1772b984522c800b1ecd02a5f7fd2b44ce15f3de";
sha256 = "1bzy9laz9rqbbxdqn9fkf0fpppxrwx2yvz51cvvycdnvfq9cv7zm";
};
};
# Telega
telega = melpaBuild {
pname = "telega";
ename = "telega";
version = "0.5";
recipe = builtins.toFile "recipe" ''
(telega :fetcher github
:repo "zevlg/telega.el")
'';
src = fetchFromGitHub {
owner = "zevlg";
repo = "telega.el";
rev = "24c8d473d1c92713f406ad224ec3311f802edfab";
sha256 = "0y4bx0w2v0w5z9p1h6sa0vqxqzi35dpz2dxqmfkpv56zw4z6v67w";
};
};
in emacsWithPackages(epkgs:
# ELPA packages
(with epkgs.elpaPackages; [
pinentry
rainbow-mode
undo-tree
]) ++
# MELPA packages
(with epkgs.melpaPackages; [
cargo
company
counsel
counsel-notmuch
counsel-spotify
dockerfile-mode
elixir-mode
elm-mode
erc-hl-nicks
erc-image
go-mode
google-translate
gruvbox-theme
haskell-mode
ivy
ivy-pass
ivy-prescient
jq-mode
kotlin-mode
magit
markdown-mode
markdown-toc
multiple-cursors
nginx-mode
nix-mode
notmuch
move-text
paredit
password-store
pg
rainbow-delimiters
restclient
rust-mode
smartparens
string-edit
swiper
telega
terraform-mode
try
use-package
uuidgen
web-mode
which-key
yaml-mode
]) ++
# Custom packaged Emacs packages:
[ xelb exwm telega ]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment