eww: Call helm-eww when no EWW buffer is found

master
Pierre Neidhardt 2018-04-15 18:38:19 +05:30
parent 2e1f4679d1
commit caaafa3f30
1 changed files with 3 additions and 1 deletions

View File

@ -82,7 +82,9 @@ If BUFFERS is not specified, then reload all buffers."
(helm-eww)
(switch-to-buffer (completing-read "EWW: " (mapcar 'buffer-name buffer-info))))
(switch-to-buffer (car buffer-info)))
(call-interactively 'eww))))
(if (fboundp 'helm-eww)
(helm-eww)
(call-interactively 'eww)))))
(defun ambrevar/eww (url)
"Fetch URL and render the page.