Re: EWW with Duck-Duck-Go
[email protected] Sun, 31 May 2026 13:27:17 -0400
| Newsgroups | gmane.emacs.help |
|---|---|
| Message-ID | <[email protected]> |
Michael Heerdegen via Users list for the GNU Emacs text editor <[email protected]> writes: > gfp <[email protected]> writes: > >> this works now, no backtrace: >> >> (with-eval-after-load 'eww >> (progn >> (add-to-list 'eww-readable-urls "www\\.mojeek\\.com") >> (setopt eww-search-prefix "https://www.mojeek.com/search?q=") >> )) > > Ok, perfect. > > You can even omit the `progn' wrapper: > > #+begin_src emacs-lisp > (with-eval-after-load 'eww > (add-to-list 'eww-readable-urls "www\\.mojeek\\.com") > (setopt eww-search-prefix "https://www.mojeek.com/search?q=")) > #+end_src > > By typing, C-h v eww-readable-urls RET we see that this identifier is a (customizable) user option, which means that its value should be set using ‘setopt’ or the Easy Customization interface. If the Easy Customization interface is used, then the ‘\\.’ can be entered as ‘\.’ and the double quotes around the regular expression can be omitted. The correct syntax for setting the value will be written. After testing the new value(s), this can then be saved for all future Emacs sessions using the ‘Apply and Save’ button. -- The lyf so short, the craft so long to lerne. - Geoffrey Chaucer, The Parliament of Birds.