summaryrefslogtreecommitdiffhomepage
path: root/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'init.el')
-rw-r--r--init.el49
1 files changed, 43 insertions, 6 deletions
diff --git a/init.el b/init.el
index fe69f12..1f2500b 100644
--- a/init.el
+++ b/init.el
@@ -1152,7 +1152,7 @@
(t (format "%s" (or (jao-afio-frame-name) ""))))
'face 'font-lock-warning-face))
- (unless jao-afio-use-frames
+ (unless nil ;; jao-afio-use-frames
(jao-minibuffer-add-variable '(jao-current--frame-id) 100))
(setq frame-title-format '("emacs - " (:eval (jao-afio-frame-name))))
@@ -1161,8 +1161,8 @@
(global-set-key (kbd "C-c t") #'jao-afio-goto-chats))
(jao-when-darwin
- (jao-afio-add-frame-parameters "docs" (width . 195) (height . 70))
- (jao-afio-add-frame-parameters nil (width . 197) (height . 82))
+ (jao-afio-add-frame-parameters "docs" (width . 195) (height . 75))
+ (jao-afio-add-frame-parameters nil (width . 163) (height . 70))
(add-to-list 'default-frame-alist '(width . 80)))
:bind (("C-c f" . 'jao-afio-goto-main)
@@ -1658,9 +1658,41 @@
(jao-exec-in-term (format "ssh %s" h) (format "*ssh %s*" h))))
;;; Chats
-(jao-when-linux (require 'jao-custom-chats))
-
-;;;; Mastodon
+;;;; telegram
+(use-package telega
+ :ensure t
+ :custom
+ (telega-use-tracking-for '(unmuted) ;; '(or unmuted mention)
+ telega-rainbow-color-custom-for nil
+ telega-msg-rainbow-title nil
+ telega-sticker-set-download t
+ telega-symbol-checkmark "·"
+ telega-symbol-heavy-checkmark "×"
+ telega-symbol-verified "*")
+ :config
+ (define-key global-map (kbd "C-c C-t") telega-prefix-map)
+ (setq telega-chat-show-avatars nil
+ telega-chat-prompt-insexp '(telega-ins "> ")
+ telega-completing-read-function #'completing-read
+ telega-root-show-avatars nil
+ telega-emoji-use-images nil
+ telega-temp-dir "/tmp/telega"
+ telega-symbol-horizontal-bar
+ (propertize "-" 'face 'jao-themes-f00)
+ telega-symbol-vertical-bar
+ (propertize "| " 'face 'jao-themes-dimm)
+ telega-mode-line-string-format
+ '(:eval (telega-mode-line-unread-unmuted))
+ telega-use-images (display-graphic-p)
+ telega-open-file-function #'jao--see
+ telega-open-message-as-file
+ (unless (display-graphic-p) '(photo video animation)))
+ (with-eval-after-load "tracking"
+ (jao-shorten-modes 'telega-chat-mode)
+ (jao-tracking-faces 'telega-tracking))
+ (telega-mode-line-mode 1))
+
+;;;; mastodon
(use-package mastodon
:ensure t
:init
@@ -1751,6 +1783,11 @@
("?" "help" describe-mode)
("q" "quit" transient-quit-one)]))
+
+;;;; and more
+(jao-when-linux (require 'jao-custom-chats))
+
+
;;; Multimedia
(jao-when-linux (require 'jao-custom-multimedia))