(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")))))