Re: EWW with Duck-Duck-Go
Michael Heerdegen via Users list for the GNU Emacs text editor <[email protected]> Sun, 31 May 2026 15:21:40 +0200
| Newsgroups | gmane.emacs.help |
|---|---|
| Message-ID | <[email protected]> |
Leude,
was macht ihr hier heute fürn Quatsch? It's surely too hot in Germany.
It will get better soon. I promise.
> > > Ah, no, eval-after-load doesn't take a sequence, but just
> > > *one* form (cf. its function-doc, with C-h f). So try
> > >
> > > (eval-after-load 'ewww
^^^^
The thing is named eww. The number of "w"s is significant.
> > > (progn
> > > ;; your statements here
> > > ))
> > >
> > > So effectively wrapping your sequence into one form.
> > >
> > > Cheers
> >
> > (eval-after-load 'ewww
> > (progn
> > (add-to-list 'eww-readable-urls "www\\.mojeek\\.com")
> > (setopt eww-search-prefix "https://www.mojeek.com/search?q=")
> > ))
And this is also Käse: `eval-after-load' is a function. This `progn'
is evaluated when loading the expression - too early (that's why your
spelling mistake doesn't even have an effect).
You meant `with-eval-after-load', Tomas:
(with-eval-after-load 'eww
(add-to-list ...)
(setopt ...)
)
gfp, please rewrite your statement accordingly. I hope I managed to
introduce less errors than in the prior version (the ellipses surely
helped).
Cheers,
Michael.