summaryrefslogtreecommitdiff
path: root/.config/nyxt/config-back.lisp
diff options
context:
space:
mode:
Diffstat (limited to '.config/nyxt/config-back.lisp')
-rw-r--r--.config/nyxt/config-back.lisp33
1 files changed, 33 insertions, 0 deletions
diff --git a/.config/nyxt/config-back.lisp b/.config/nyxt/config-back.lisp
new file mode 100644
index 0000000..3bcc50b
--- /dev/null
+++ b/.config/nyxt/config-back.lisp
@@ -0,0 +1,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")))))
+