about summary refs log tree commit diff
path: root/users/tazjin/emacs/config
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@tvl.su>2023-08-07T11·33+0300
committerclbot <clbot@tvl.fyi>2023-08-08T09·44+0000
commit9b8eb424eb6412da1b3f645e4cd6f65fcdc67655 (patch)
treef43164f6fa5fb26ae747d219674c9c382215a754 /users/tazjin/emacs/config
parent8dac21b4444b97910ea8eb67a799cfb92eb7f572 (diff)
fix(tazjin/emacs): unbind dangerous telega.el shortcut r/6468
The `a` shortcut of telega makes it dangerously easy to accidentally
add users whose username starts with `a` to a group.

This unbinds the shortcut, and leaves the member-adding function to be
called manually and explicitly only.

Change-Id: Iedb6291f16a299fc5d4ef824a1be6eb0a449001f
Reviewed-on: https://cl.tvl.fyi/c/depot/+/9015
Reviewed-by: tazjin <tazjin@tvl.su>
Autosubmit: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Diffstat (limited to 'users/tazjin/emacs/config')
-rw-r--r--users/tazjin/emacs/config/init.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/users/tazjin/emacs/config/init.el b/users/tazjin/emacs/config/init.el
index 8383f8ac33bf..a920bca8609c 100644
--- a/users/tazjin/emacs/config/init.el
+++ b/users/tazjin/emacs/config/init.el
@@ -226,7 +226,8 @@
   (setq common-lisp-hyperspec-root "file:///home/tazjin/docs/lisp/"))
 
 (use-package telega
-  :bind (:map global-map ("s-t" . telega))
+  :bind (:map global-map ("s-t" . telega)
+         :map telega-chat-button-map ("a" . ignore))
   :config (telega-mode-line-mode 1)
   :custom (telega-emoji-use-images nil)
   :hook (telega-chat-mode . company-mode))