Nyxt add comment for changing search engines, TODO

This commit is contained in:
Evie Litherland-Smith 2024-02-08 19:28:06 +00:00
parent 381c6650a0
commit 0abf095999

View file

@ -1,8 +1,8 @@
(define-configuration buffer (define-configuration buffer
((default-modes (pushnew 'nyxt/mode/emacs:emacs-mode %slot-value%)) ((default-modes
(default-modes (pushnew 'nyxt/mode/blocker:blocker-mode %slot-value%)) (pushnew 'nyxt/mode/emacs:emacs-mode %slot-value%))
(default-modes (pushnew 'nyxt/mode/reduce-tracking:reduce-tracking-mode %slot-value%)) (default-modes
(default-modes (pushnew 'nyxt/mode/force-https:force-https-mode %slot-value%)))) (pushnew 'nyxt/mode/blocker:blocker-mode %slot-value%))))
(define-configuration status-buffer (define-configuration status-buffer
((glyph-mode-presentation-p t) ((glyph-mode-presentation-p t)
@ -20,59 +20,82 @@
(define-configuration :document-mode (define-configuration :document-mode
"Extend with custom keybinds" "Extend with custom keybinds"
((keyscheme-map (keymaps:define-keyscheme-map "custom" (list :import %slot-value%) ((keyscheme-map
nyxt/keyscheme:emacs (list (keymaps:define-keyscheme-map "custom" (list :import %slot-value%)
"C-c u" 'copy-username nyxt/keyscheme:emacs (list
"C-c p" 'copy-password))))) "C-c u" 'copy-username
"C-c p" 'copy-password)))))
(define-configuration :autofill-mode (define-configuration :autofill-mode
"Add autofill functions for passwords" "Add autofill functions for passwords"
((autofills (list ((autofills
(nyxt/mode/autofill:make-autofill :name "name" :fill "Evie Litherland-Smith") (list
(nyxt/mode/autofill:make-autofill :name "email" :fill "evie@xenia.me.uk"))))) (nyxt/mode/autofill:make-autofill
:name "name"
:fill "Evie Litherland-Smith")
(nyxt/mode/autofill:make-autofill
:name "email"
:fill "evie@xenia.me.uk")))))
;; (defvar *my-search-engines*
;; (list
;; '("google" "https://google.com/search?q=~a" "https://google.com")
;; '("python3" "https://docs.python.org/3/search.html?q=~a"
;; "https://docs.python.org/3")
;; '("doi" "https://dx.doi.org/~a" "https://dx.doi.org/"))
;; "List of search engines.")
;; (define-configuration context-buffer
;; "Go through the search engines above and make-search-engine out of them."
;; ((search-engines
;; (append
;; (mapcar (lambda (engine) (apply 'make-search-engine engine))
;; *my-search-engines*)
;; %slot-default%))))
(define-configuration browser (define-configuration browser
((restore-session-on-startup-p nil) ((restore-session-on-startup-p nil)
(theme (make-instance (theme
'theme:theme (make-instance
:dark-p t 'theme:theme
:font-family "Iosevka Nerd Font" :dark-p t
:monospace-font-family "Iosevka Nerd Font" :font-family "Iosevka Nerd Font"
:text-color "#ffffff" :monospace-font-family "Iosevka Nerd Font"
:text-color+ "#ffffff" :text-color "#ffffff"
:text-color- "#ffffff" :text-color+ "#ffffff"
:contrast-text-color "#000000" :text-color- "#ffffff"
:background-color "#0d0e1c" :contrast-text-color "#000000"
:background-color+ "#0d0e1c" :background-color "#0d0e1c"
:background-color- "#0d0e1c" :background-color+ "#0d0e1c"
:on-background-color "#ffffff" :background-color- "#0d0e1c"
:accent-color "#c6daff" :on-background-color "#ffffff"
:accent-color+ "#c6daff" :accent-color "#c6daff"
:accent-color- "#c6daff" :accent-color+ "#c6daff"
:on-accent-color "#000000" :accent-color- "#c6daff"
:primary-color "#b4befe" :on-accent-color "#000000"
:primary-color+ "#b4befe" :primary-color "#b4befe"
:primary-color- "#b4befe" :primary-color+ "#b4befe"
:on-primary-color "#000000" :primary-color- "#b4befe"
:secondary-color "#61647a" :on-primary-color "#000000"
:secondary-color+ "#61647a" :secondary-color "#61647a"
:secondary-color- "#61647a" :secondary-color+ "#61647a"
:on-secondary-color "#ffffff" :secondary-color- "#61647a"
:warning-color "#f38ba8" :on-secondary-color "#ffffff"
:warning-color+ "#f38ba8" :warning-color "#f38ba8"
:warning-color- "#f38ba8" :warning-color+ "#f38ba8"
:on-warning-color "#000000" :warning-color- "#f38ba8"
:highlight-color "#f9e2af" :on-warning-color "#000000"
:highlight-color+ "#f9e2af" :highlight-color "#f9e2af"
:highlight-color- "#f9e2af" :highlight-color+ "#f9e2af"
:on-highlight-color "#000000" :highlight-color- "#f9e2af"
:action-color "#89b4fa" :on-highlight-color "#000000"
:action-color+ "#89b4fa" :action-color "#89b4fa"
:action-color- "#89b4fa" :action-color+ "#89b4fa"
:on-action-color "#000000" :action-color- "#89b4fa"
:codeblock-color "#1d2235" :on-action-color "#000000"
:codeblock-color+ "#1d2235" :codeblock-color "#1d2235"
:codeblock-color- "#1d2235" :codeblock-color+ "#1d2235"
:on-codeblock-color "#ffffff")))) :codeblock-color- "#1d2235"
:on-codeblock-color "#ffffff"))))
(setf (uiop/os:getenv "GTK_THEME") "Adwaita:dark") (setf (uiop/os:getenv "GTK_THEME") "Adwaita:dark")