nixos/pkgsets/emacs/powerline.nix
derped ad76922338
Move pkgsets folder into project root to conform with option naming.
Add simple package filter to auto remove broken packages.
2020-03-27 13:41:24 +01:00

16 lines
590 B
Nix

{ config, lib, ... }:
with lib;
mkIf (elem "emacs::powerline" config.machine.pkgs) {
programs.emacs.init.usePackage.powerline = {
enable = true;
config = ''
;; color palette from https://github.com/kuanyui/moe-theme.el/blob/master/moe-theme.el#L283
(set-face-attribute 'mode-line nil :background "#afd7ff" :foreground "#005f87")
(set-face-attribute 'mode-line-buffer-id nil :background "#afd7ff" :foreground "#080808")
(set-face-attribute 'minibuffer-prompt nil :foreground "#5fafd7" :background "#3a3a3a")
(powerline-default-theme)
'';
};
}