summaryrefslogtreecommitdiff
path: root/.config/nyxt/config-back.lisp
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2023-09-27 02:10:25 +0300
committerThanos Apollo <[email protected]>2023-09-27 02:10:25 +0300
commit47b73144d1b30514df003560851de3bd06e88b81 (patch)
tree27b0b2e914c6867d90f6ce456b123606803a8a09 /.config/nyxt/config-back.lisp
parent696a16039e28e5844a164d69f60006b9c11a0067 (diff)
[New] Add nyxt, slightly modified config from aartaka
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")))))
+