From a989a91f9f13950f50a12c1374bbdccb42cac8c8 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 12 May 2021 15:17:52 +0200 Subject: chore(tazjin/emacs): Ignore messages from blocked senders in telega 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 --- users/tazjin/emacs/config/init.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- cgit 1.4.1