diff options
Diffstat (limited to '.config/nyxt/default-search.lisp')
-rw-r--r-- | .config/nyxt/default-search.lisp | 17 |
1 files changed, 17 insertions, 0 deletions
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*))))) |