emacs: add telega mode

This commit is contained in:
Kevin Baensch 2021-11-25 21:43:49 +01:00
parent 0d97bc51a2
commit e8f26ac86e
Signed by: derped
GPG key ID: C0F1D326C7626543

15
pkgsets/emacs/telega.nix Normal file
View file

@ -0,0 +1,15 @@
{ config, lib, ... }:
with lib;
mkIf (elem "emacs::telega" config.machine.pkgs) {
programs.emacs.init.usePackage.telegram = {
enable = true;
defer = true;
package = epkgs: [ epkgs.telega epkgs.visual-fill-column ];
command = [ "telega" ];
config = ''
(telega-alert-mode 1)
'';
};
}