summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2024-10-29 00:41:54 +0000
committerjao <jao@gnu.org>2024-10-29 00:41:54 +0000
commit0ee9a57f1767bbddb58fd4df0c542d25b1725bb4 (patch)
tree2584b4ed4a1163d94d3b49d2c532edcee9a8c0dd
parenta7c09173974e4f4a1bb94c2eae4de0b47e5eb966 (diff)
downloadelibs-0ee9a57f1767bbddb58fd4df0c542d25b1725bb4.tar.gz
elibs-0ee9a57f1767bbddb58fd4df0c542d25b1725bb4.tar.bz2
nits
-rw-r--r--custom/jao-custom-eww.el3
-rw-r--r--init.el9
2 files changed, 7 insertions, 5 deletions
diff --git a/custom/jao-custom-eww.el b/custom/jao-custom-eww.el
index 987040f..6a2e8e2 100644
--- a/custom/jao-custom-eww.el
+++ b/custom/jao-custom-eww.el
@@ -278,5 +278,8 @@ It should be the title of the web page as returned by `rdrview'"
(advice-add 'shr-tag-img :around #'jao-shr-tag-img)
(advice-add 'shr-insert :around #'jao-shr-insert)
+;; (advice-remove 'shr-tag-img #'jao-shr-tag-img)
+;; (advice-remove 'shr-insert #'jao-shr-insert)
+
;;; .
(provide 'jao-custom-eww)
diff --git a/init.el b/init.el
index 7995bce..284de54 100644
--- a/init.el
+++ b/init.el
@@ -2429,10 +2429,10 @@
(tramp-get-completion-function "ssh"))
#'string=))
-(defun jao-ssh ()
- (interactive)
+(defun jao-ssh (&optional scratch)
+ (interactive "P")
(let ((h (completing-read "Host: " (jao-tramp-hosts))))
- (jao-afio-goto-scratch)
+ (when scratch (jao-afio-goto-scratch))
(jao-exec-in-term (format "ssh %s" h) (format "*ssh %s*" h))))
;;; Chats
@@ -3276,14 +3276,13 @@
("x" "restart xmobar" jao-xmobar-restart :if jao-exwm-enabled-p)
("x" "kill xmobar" jao-xmobar-kill :if jao-xmonad-enabled-p)]
["Network"
- ("S" "ssh" jao-ssh)
+ ("s" "ssh" jao-ssh)
("b" "bluetooth" bluetooth-list-devices)
("c" "connect chats" jao-all-chats)
("m" "proton bridge" run-proton-bridge)
("v" "view video" jao-view-video)]
["Chats"
("t" "telegram" jao-chats-telega)
- ("s" "slack" jao-chats-slack)
("i" "irc" jao-chats-irc)
("M" "mastodon" jao-mastodon)
("T" "telegram rooster" jao-telega)]