diff options
author | Vincent Ambo <mail@tazj.in> | 2021-05-12T13·17+0200 |
---|---|---|
committer | tazjin <mail@tazj.in> | 2021-05-12T13·25+0000 |
commit | a989a91f9f13950f50a12c1374bbdccb42cac8c8 (patch) | |
tree | c1d32fe4486dafc75d532939b1cd845f66a62019 /users/tazjin/emacs/config/init.el | |
parent | ebf630194148b1f15b6c0144ce868a45fce5cd47 (diff) |
chore(tazjin/emacs): Ignore messages from blocked senders in telega r/2584
telega actually supports this for group chats, too, which is very pleasant. https://zevlg.github.io/telega.el/#client-side-messages-ignoring Change-Id: I510207c2de19f748359168d460a25aa9c4e45975 Reviewed-on: https://cl.tvl.fyi/c/depot/+/3111 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in>
Diffstat (limited to 'users/tazjin/emacs/config/init.el')
-rw-r--r-- | users/tazjin/emacs/config/init.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/users/tazjin/emacs/config/init.el b/users/tazjin/emacs/config/init.el index b37fab81faf7..ec9f3deae5dc 100644 --- a/users/tazjin/emacs/config/init.el +++ b/users/tazjin/emacs/config/init.el @@ -206,7 +206,9 @@ (use-package telega :bind (:map global-map ("s-t" . telega)) - :config (telega-mode-line-mode 1)) + :config + (telega-mode-line-mode 1) + (add-hook 'telega-msg-ignore-predicates 'telega-msg-from-blocked-sender-p)) (use-package terraform-mode) (use-package toml-mode) |