summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--custom/jao-custom-chats.el7
-rw-r--r--custom/jao-custom-notmuch.el1
-rw-r--r--custom/jao-custom-programming.el2
-rw-r--r--init.el17
4 files changed, 15 insertions, 12 deletions
diff --git a/custom/jao-custom-chats.el b/custom/jao-custom-chats.el
index 60368d3..d110a24 100644
--- a/custom/jao-custom-chats.el
+++ b/custom/jao-custom-chats.el
@@ -118,13 +118,6 @@
(circe-lagmon-mode))
;;;; startup
-(defun jao-telega ()
- (interactive)
- (jao-tracking-go-to-chats)
- (if (get-buffer telega-root-buffer-name)
- (pop-to-buffer telega-root-buffer-name)
- (telega)))
-
(defun jao-chats (&optional p)
(interactive "P")
(when (or p (y-or-n-p "Connect to telegram? "))
diff --git a/custom/jao-custom-notmuch.el b/custom/jao-custom-notmuch.el
index ca2664c..77b0b8f 100644
--- a/custom/jao-custom-notmuch.el
+++ b/custom/jao-custom-notmuch.el
@@ -598,6 +598,7 @@
(("b" . jao-notmuch-browse-urls)
("d" . jao-notmuch-tree-toggle-delete)
("D" . jao-notmuch-tree-toggle-delete-thread)
+ ("E" . jao-notmuch-open-enclosure)
("h" . jao-notmuch-goto-message-buffer)
("i" . jao-notmuch-toggle-images)
("k" . jao-notmuch-tree-read-thread)
diff --git a/custom/jao-custom-programming.el b/custom/jao-custom-programming.el
index d8f9308..672f70f 100644
--- a/custom/jao-custom-programming.el
+++ b/custom/jao-custom-programming.el
@@ -294,6 +294,8 @@
(rustic-cargo-use-last-stored-arguments t)
(rustic-analyzer-command '("rustup" "run" "stable" "rust-analyzer")))
+(use-package rust-playground :ensure t)
+
;;;; Clojure
(use-package clojure-mode
:ensure t
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)