2018-06-15 13:56:47 +02:00
|
|
|
# Derivation for Emacs pre-configured with packages that I need.
|
2018-10-10 11:21:15 +02:00
|
|
|
#
|
|
|
|
# TODO: Fix sly (again)
|
2018-08-10 22:16:34 +02:00
|
|
|
|
2018-04-22 13:18:20 +02:00
|
|
|
{ pkgs }:
|
2018-03-04 00:07:38 +01:00
|
|
|
|
2018-10-10 11:21:15 +02:00
|
|
|
with pkgs; with emacsPackagesNg;
|
2018-06-15 13:56:47 +02:00
|
|
|
let emacsWithPackages = (emacsPackagesNgGen emacs).emacsWithPackages;
|
2018-03-04 00:07:38 +01:00
|
|
|
|
2018-09-19 22:59:42 +02:00
|
|
|
# As the EXWM-README points out, XELB should be built from source if
|
|
|
|
# EXWM is.
|
|
|
|
xelb = melpaBuild {
|
|
|
|
pname = "xelb";
|
|
|
|
ename = "xelb";
|
|
|
|
version = "0.15";
|
2018-10-10 11:21:15 +02:00
|
|
|
recipe = builtins.toFile "recipe" ''
|
|
|
|
(xelb :fetcher github
|
|
|
|
:repo "ch11ng/xelb")
|
|
|
|
'';
|
2018-09-19 22:59:42 +02:00
|
|
|
|
|
|
|
packageRequires = [ cl-generic emacs ];
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ch11ng";
|
|
|
|
repo = "xelb";
|
|
|
|
rev = "b8f168b401977098fe2b30f4ca32629c0ab6eb83";
|
|
|
|
sha256 = "1ack1h68x8ia0ji6wbhmayrakq35p5sgrrl6qvha3ns3pswc0pl9";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-08-05 16:13:22 +02:00
|
|
|
# EXWM pinned to a newer version than what is released due to a
|
|
|
|
# potential fix for ch11ng/exwm#425.
|
2018-09-19 22:59:42 +02:00
|
|
|
exwm = melpaBuild {
|
|
|
|
pname = "exwm";
|
|
|
|
ename = "exwm";
|
|
|
|
version = "0.19";
|
2018-10-10 11:21:15 +02:00
|
|
|
recipe = builtins.toFile "recipe" ''
|
|
|
|
(exwm :fetcher github
|
|
|
|
:repo "ch11ng/exwm")
|
|
|
|
'';
|
2018-09-19 22:59:42 +02:00
|
|
|
|
|
|
|
packageRequires = [ xelb ];
|
2018-08-05 16:13:22 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2018-09-02 15:21:23 +02:00
|
|
|
owner = "ch11ng";
|
2018-08-05 16:13:22 +02:00
|
|
|
repo = "exwm";
|
2018-09-19 22:59:42 +02:00
|
|
|
rev = "472f7cb82b67b98843f10c12e6bda9b8ae7262bc";
|
|
|
|
sha256 = "19gflsrb19aijf2xcw7j2m658qad21nbwziw38s1h2jw66vhk8dj";
|
2018-08-05 16:13:22 +02:00
|
|
|
};
|
2018-09-19 22:59:42 +02:00
|
|
|
};
|
2018-08-05 16:13:22 +02:00
|
|
|
|
2018-12-09 13:26:30 +01:00
|
|
|
slyFixed = sly.overrideAttrs(_: {
|
|
|
|
recipe = builtins.toFile "recipe" ''
|
|
|
|
(sly :repo "joaotavora/sly"
|
|
|
|
:fetcher github
|
|
|
|
:files ("*.el"
|
|
|
|
("lib" "lib/*")
|
|
|
|
("contrib" "contrib/*")
|
|
|
|
"doc/*.texi"
|
|
|
|
"doc/*.info"
|
|
|
|
"doc/dir"))
|
|
|
|
'';
|
|
|
|
});
|
|
|
|
|
2018-06-15 13:56:47 +02:00
|
|
|
in emacsWithPackages(epkgs:
|
2018-03-04 00:07:38 +01:00
|
|
|
# Actual ELPA packages (the enlightened!)
|
|
|
|
(with epkgs.elpaPackages; [
|
|
|
|
ace-window
|
|
|
|
avy
|
|
|
|
company
|
|
|
|
pinentry
|
|
|
|
rainbow-mode
|
|
|
|
undo-tree
|
|
|
|
which-key
|
|
|
|
]) ++
|
|
|
|
|
2018-05-01 16:06:28 +02:00
|
|
|
# MELPA packages:
|
|
|
|
(with epkgs.melpaPackages; [
|
2018-03-04 00:07:38 +01:00
|
|
|
browse-kill-ring
|
|
|
|
cargo
|
2018-10-10 11:21:15 +02:00
|
|
|
counsel
|
|
|
|
counsel-notmuch
|
2018-03-04 00:07:38 +01:00
|
|
|
dash
|
|
|
|
dash-functional
|
|
|
|
dockerfile-mode
|
2018-05-01 16:06:28 +02:00
|
|
|
edit-server
|
2018-10-10 11:21:15 +02:00
|
|
|
eglot
|
2018-07-14 16:18:21 +02:00
|
|
|
elixir-mode
|
2018-03-04 00:07:38 +01:00
|
|
|
erlang
|
2019-01-30 10:14:50 +01:00
|
|
|
elm-mode
|
2018-10-10 11:21:15 +02:00
|
|
|
exwm
|
2018-03-04 00:07:38 +01:00
|
|
|
go-mode
|
|
|
|
gruber-darker-theme
|
|
|
|
haskell-mode
|
|
|
|
ht
|
2018-06-19 15:21:34 +02:00
|
|
|
hydra
|
2018-03-04 00:07:38 +01:00
|
|
|
idle-highlight-mode
|
2018-10-10 11:21:15 +02:00
|
|
|
intero
|
|
|
|
ivy
|
|
|
|
ivy-pass
|
|
|
|
ivy-prescient
|
2018-06-08 00:13:27 +02:00
|
|
|
jq-mode
|
2018-05-01 16:06:28 +02:00
|
|
|
kotlin-mode
|
2018-03-04 00:07:38 +01:00
|
|
|
magit
|
2018-06-15 13:56:47 +02:00
|
|
|
markdown-mode
|
|
|
|
markdown-toc
|
2018-10-14 16:20:28 +02:00
|
|
|
meghanada
|
2018-03-04 00:07:38 +01:00
|
|
|
multi-term
|
|
|
|
multiple-cursors
|
2018-04-23 15:33:05 +02:00
|
|
|
nginx-mode
|
2018-10-10 11:21:15 +02:00
|
|
|
nix-mode
|
2018-10-25 11:25:29 +02:00
|
|
|
omnisharp
|
2018-03-04 00:07:38 +01:00
|
|
|
paredit
|
|
|
|
password-store
|
2018-05-01 16:06:28 +02:00
|
|
|
pg
|
2018-10-10 11:21:15 +02:00
|
|
|
pkgs.notmuch
|
|
|
|
prescient
|
2018-03-04 00:07:38 +01:00
|
|
|
rainbow-delimiters
|
2018-05-01 16:06:28 +02:00
|
|
|
restclient
|
2018-03-04 00:07:38 +01:00
|
|
|
rust-mode
|
|
|
|
s
|
2018-12-09 13:26:30 +01:00
|
|
|
slyFixed
|
2018-05-07 14:43:35 +02:00
|
|
|
smartparens
|
2018-03-04 00:07:38 +01:00
|
|
|
string-edit
|
2018-10-10 11:21:15 +02:00
|
|
|
swiper
|
2018-06-15 00:12:06 +02:00
|
|
|
telephone-line
|
2018-06-15 13:56:47 +02:00
|
|
|
terraform-mode
|
2018-03-17 21:47:27 +01:00
|
|
|
toml-mode
|
2018-06-22 10:32:01 +02:00
|
|
|
use-package
|
2018-03-04 00:07:38 +01:00
|
|
|
uuidgen
|
2018-05-23 12:17:20 +02:00
|
|
|
web-mode
|
2018-06-06 23:32:55 +02:00
|
|
|
websocket
|
2018-05-01 16:06:28 +02:00
|
|
|
yaml-mode
|
2018-03-04 01:53:41 +01:00
|
|
|
]) ++
|
|
|
|
|
|
|
|
# Custom packaged Emacs packages:
|
2018-10-10 11:21:15 +02:00
|
|
|
[ xelb exwm ]
|
2018-03-04 00:07:38 +01:00
|
|
|
)
|