Re: EWW with Duck-Duck-Go
<[email protected]> Sun, 31 May 2026 11:56:02 +0200
| Newsgroups | gmane.emacs.help |
|---|---|
| Message-ID | <[email protected]> |
On Sun, May 31, 2026 at 09:22:12AM +0000, gfp wrote:
> I added your lisp expression to my init.el file.
>
> this backtrace came up:
>
> Debugger entered--Lisp error: (void-variable eww-readable-urls)
> (member "www\\.mojeek\\.com" eww-readable-urls)
> (if (member "www\\.mojeek\\.com" eww-readable-urls) eww-readable-urls
> (setq eww-readable-urls (cons "www\\.mojeek\\.com" eww-readable-urls)))
> load-with-code-conversion("/home/gfp/.config/emacs/init.el"
> "/home/gfp/.config/emacs/init.el" t t)
> load("/home/gfp/.config/emacs/init" noerror nomessage)
> #f(compiled-function () #<bytecode 0x867139f59771f90>)()
> startup--load-user-init-file(#f(compiled-function () #<bytecode
> -0x4583aa3daad5e90>) #f(compiled-function () #<bytecode
> -0x15951949e52b234f>) t)
> command-line()
> normal-top-level()
>
>
> it means AFAIU there is something still necessary to add.
Not 100% sure, but this looks as if the thing is being evaluated
too early (before ewww is loaded), so the above variable still
doesn't exist.
You can postpone evaluation to that point by wrapping your code
in
(eval-after-load 'ewww
;; your-code-here
)
(Careful: untested. Some adjustments possibly needed)
Cheers
--
t
signature.asc
(application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCahwFqwAKCRAFyCz1etHa RtiSAJ9b8ScLKk9VQmiEpL9NCH8r467llACfbYdYMlyr/KlWbypDToLQzV/QkUk= =Gnok -----END PGP SIGNATURE-----