From 04e0b9a5d0b400870e6ca39f454e7ed388ffe0af Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Tue, 27 Feb 2024 14:53:14 +0200 Subject: nyxt: Rewrite modules --- .config/nyxt/default-search.lisp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .config/nyxt/default-search.lisp (limited to '.config/nyxt/default-search.lisp') diff --git a/.config/nyxt/default-search.lisp b/.config/nyxt/default-search.lisp new file mode 100644 index 0000000..9d47fc7 --- /dev/null +++ b/.config/nyxt/default-search.lisp @@ -0,0 +1,17 @@ + +(defvar *my-search-engines* + (list + '("google" "https://google.com/search?q=~a" "https://google.com") + '("doi" "https://dx.doi.org/~a" "https://dx.doi.org/") + '("python3" "https://docs.python.org/3/search.html?q=~a" + "https://docs.python.org/3") + '("duck" "https://duckduckgo.com/?q=~a" "https://duckduckgo.com/")) + "List of search engines.") + +(define-configuration context-buffer + "Go through the search engines above and make-search-engine out of them." + ((search-engines + (append %slot-default% + (mapcar + (lambda (engine) (apply 'make-search-engine engine)) + *my-search-engines*))))) -- cgit v1.2.3