--- a/lisp/net/eww.el +++ b/lisp/net/eww.el @@ -159,9 +203,14 @@ ;;;###autoload (defun eww (url) "Fetch URL and render the page. If the input doesn't look like an URL or a domain name, the word(s) will be searched for via `eww-search-prefix'." - (interactive "sEnter URL or keywords: ") + (interactive + (let* ((uri (plist-get eww-data :url)) + (prompt (concat "Enter URL or keywords" + (if uri (format " (default %s)" uri) "") + ": "))) + (list (read-string prompt nil nil uri)))) (setq url (string-trim url)) (cond ((string-match-p "\\`file:/" url)) ;; Don't mangle file: URLs at all. @@ -513,6 +568,7 @@ the like." (suppress-keymap map) (define-key map "q" 'quit-window) (define-key map "g" 'eww-reload) + (define-key map "G" 'eww) (define-key map [?\t] 'shr-next-link) (define-key map [?\M-\t] 'shr-previous-link) (define-key map [delete] 'scroll-down-command)