summaryrefslogtreecommitdiff
path: root/.config/nyxt/default-search.lisp
blob: 9d5260812303e8a67df7c9659287442a2bb41a85 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
;; Search engines
(defvar *thanos/search-engines*
  (list
   '("aa" "https://annas-archive.org/search?q=~a" "https://annas-archive.org/")
   '("ddg" "https://html.duckduckgo.com/html/?q=~a" "https://html.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))
             *thanos/search-engines*)))))