EWW: Offer to open URL at point in switcher

master
Pierre Neidhardt 2019-03-08 09:47:00 +01:00
parent c3bf90eb52
commit 1838dc7cfa
1 changed files with 4 additions and 1 deletions

View File

@ -75,7 +75,10 @@ If BUFFERS is not specified, then reload all buffers."
(lambda (b)
(with-current-buffer b
(derived-mode-p 'eww-mode)))
(lambda () (call-interactively 'eww))
(lambda () (if (thing-at-point-url-at-point)
;; This only works fine if no EWW buffer is up.
(call-interactively 'eww)
(helm-eww)))
helm-eww))
(defun ambrevar/eww (url)