blob: 3bcc50b2cefdcfb7d2617e79ed38b931a8f36ca4 (
about) (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
(define-configuration browser
((theme theme:+dark-theme+)))
(define-configuration (web-buffer prompt-buffer panel-buffer
nyxt/mode/editor:editor-buffer)
((default-modes (pushnew 'nyxt/mode/emacs:emacs-mode %slot-value%))))
(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/")
'("duck" "https://duckduckgo.com/?q=~a" "https://duckudckgo.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*)))))
(define-configuration nyxt/mode/style:dark-mode
((style
(theme:themed-css (theme *browser*)
`(* :background-color ,theme:background "!important"
:background-image none "!important" :color "blue"
"!important")
`(a :background-color ,theme:background "!important"
:background-image none "!important" :color "#AAAAAA"
"!important")))))
|