summaryrefslogtreecommitdiffhomepage
path: root/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'init.el')
-rw-r--r--init.el17
1 files changed, 12 insertions, 5 deletions
diff --git a/init.el b/init.el
index 1f2500b..3dd793d 100644
--- a/init.el
+++ b/init.el
@@ -1157,9 +1157,6 @@
(setq frame-title-format '("emacs - " (:eval (jao-afio-frame-name))))
- (jao-when-linux
- (global-set-key (kbd "C-c t") #'jao-afio-goto-chats))
-
(jao-when-darwin
(jao-afio-add-frame-parameters "docs" (width . 195) (height . 75))
(jao-afio-add-frame-parameters nil (width . 163) (height . 70))
@@ -1169,6 +1166,7 @@
("C-c g" . 'jao-afio-goto-mail)
("C-c w" . 'jao-afio-goto-www)
("C-c z" . 'jao-afio-goto-docs)
+ ("C-c t" . 'jao-afio-goto-chats)
("C-c 0" . 'jao-afio-goto-scratch)
("M-o" . 'jao-afio-toggle)))
@@ -1188,8 +1186,8 @@
LaTeX-mode TeX-mode))
(defadvice yank (after indent-region activate)
- (if (member major-mode jao-auto-indent-modes)
- (indent-region (region-beginning) (region-end) nil)))
+ (when (member major-mode jao-auto-indent-modes)
+ (indent-region (region-beginning) (region-end) nil)))
;;;; org mode
(require 'jao-custom-org)
@@ -1692,6 +1690,13 @@
(jao-tracking-faces 'telega-tracking))
(telega-mode-line-mode 1))
+(defun jao-telega ()
+ (interactive)
+ (jao-tracking-go-to-chats)
+ (if (get-buffer telega-root-buffer-name)
+ (pop-to-buffer telega-root-buffer-name)
+ (telega)))
+
;;;; mastodon
(use-package mastodon
:ensure t
@@ -1991,6 +1996,8 @@
("w" "wwww" jao-afio-goto-www)
("f" "main" jao-afio-goto-main)
("a" "save configuration" jao-afio-save-configuration)]
+ ["Chats"
+ ("T" "telegram rooster" jao-telega)]
["Network"
("s" "ssh" jao-ssh)
("r" "r2e" jao-r2e)