From 3847fdab8fa0542f09ed74a1f2907e6f406d06c9 Mon Sep 17 00:00:00 2001 From: jao Date: Fri, 20 Aug 2021 00:18:59 +0100 Subject: nits --- completion.org | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'completion.org') 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))))) -- cgit v1.2.3