diff options
author | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2022-09-12 14:56:33 +0200 |
---|---|---|
committer | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2022-09-12 15:05:58 +0200 |
commit | 5073a82d39914e1b753005520219ab949cd13f97 (patch) | |
tree | c23d75eeffc72e8cd8619383ffe9e35a6acbce3a | |
parent | 6eef69b247a20cea4bb1fc598cfc9e69deb7fb91 (diff) |
url-lookup: shr-browse-url in masto-mode, otherwise browse-url
-rw-r--r-- | lisp/mastodon.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/mastodon.el b/lisp/mastodon.el index 5d41858..4578e13 100644 --- a/lisp/mastodon.el +++ b/lisp/mastodon.el @@ -280,7 +280,9 @@ not, just browse the URL in the normal fashion." (get-text-property (point) 'shr-url) (read-string "Lookup URL: ")))) (if (not (mastodon--masto-url-p query)) - (shr-browse-url query) + (if (equal major-mode 'mastodon-mode) + (shr-browse-url query) ;; keep our shr keymap + (browse-url query)) (message "Performing lookup...") (let* ((url (format "%s/api/v2/search" mastodon-instance-url)) (param (concat "resolve=t")) ; webfinger |