summaryrefslogtreecommitdiffhomepage
path: root/completion.org
diff options
context:
space:
mode:
Diffstat (limited to 'completion.org')
-rw-r--r--completion.org7
1 files changed, 4 insertions, 3 deletions
diff --git a/completion.org b/completion.org
index ff6e2ce..7b30f3b 100644
--- a/completion.org
+++ b/completion.org
@@ -365,11 +365,12 @@
(defun jao-embark-targets--w3m-anchor ()
(when (not (region-active-p))
- (when-let ((url (or (and (derived-mode-p 'w3m-mode)
+ (when-let ((url (or (jao-url-around-point)
+ (thing-at-point 'url)
+ (and (derived-mode-p 'w3m-mode)
(or (w3m-anchor) w3m-current-url))
(and (derived-mode-p 'eww-mode)
- (or (thing-at-point 'url) (eww-current-url)))
- (jao-url-around-point))))
+ (eww-current-url)))))
(when (string-match-p "^https?.*" url)
(cons 'url url)))))