nixos/home/nyxt/config.lisp

60 lines
2.1 KiB
Common Lisp
Raw Normal View History

(define-configuration buffer
((default-modes
(pushnew 'nyxt/mode/emacs:emacs-mode %slot-value%))
(default-modes
(pushnew 'nyxt/mode/blocker:blocker-mode %slot-value%))))
(define-configuration status-buffer
((glyph-mode-presentation-p t)
(display-tabs-by-last-access-p t)))
(define-configuration :emacs-mode ((glyph "ε")))
2024-02-03 06:01:15 +00:00
(define-configuration :force-https-mode ((glyph "ϕ")))
(define-configuration :user-script-mode ((glyph "u")))
(define-configuration :blocker-mode ((glyph "β")))
(define-configuration :proxy-mode ((glyph "π")))
(define-configuration :reduce-tracking-mode ((glyph "τ")))
(define-configuration :certificate-exception-mode ((glyph "χ")))
(define-configuration :style-mode ((glyph "ϕ")))
(define-configuration :cruise-control-mode ((glyph "σ")))
(define-configuration :document-mode
"Extend with custom keybinds"
((keyscheme-map
(keymaps:define-keyscheme-map "custom" (list :import %slot-value%)
nyxt/keyscheme:emacs (list
"C-c u" 'copy-username
"C-c p" 'copy-password)))))
2024-02-03 06:13:39 +00:00
(define-configuration :autofill-mode
"Add autofill functions for passwords"
((autofills
(list
(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%))))
2024-02-03 06:13:39 +00:00
(define-configuration browser
((restore-session-on-startup-p nil)))
(setf (uiop/os:getenv "GTK_THEME") "Adwaita:dark")