EWW: Fix helm-defswitcher args.

master
Pierre Neidhardt 2019-09-10 17:11:40 +02:00
parent 65e0fdf80d
commit 0d06080bd3
1 changed files with 6 additions and 4 deletions

View File

@ -75,10 +75,12 @@ If BUFFERS is not specified, then reload all buffers."
(lambda (b)
(with-current-buffer b
(derived-mode-p 'eww-mode)))
(lambda () (if (thing-at-point-url-at-point)
;; This only works fine if no EWW buffer is up.
(call-interactively 'eww)
(helm-eww)))
(lambda (&optional _)
(interactive)
(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)