27 lines
1.2 KiB
Common Lisp
27 lines
1.2 KiB
Common Lisp
(defmethod customize-instance ((browser browser) &key)
|
|
(setf (slot-value browser 'restore-session-on-startup-p) nil))
|
|
(setf (uiop:getenv "GTK_THEME") "Adwaita:dark")
|
|
(setf (uiop/os:getenv "WEBKIT_DISABLE_COMPOSITING_MODE") "1")
|
|
(define-configuration buffer
|
|
((default-modes (pushnew 'nyxt/mode/emacs:emacs-mode %slot-value%))))
|
|
(define-configuration web-buffer
|
|
((default-modes (pushnew 'nyxt/mode/blocker:blocker-mode %slot-value%))))
|
|
(define-configuration context-buffer
|
|
((search-engines (list
|
|
(make-instance 'search-engine
|
|
:name "Wikipedia"
|
|
:shortcut "wiki"
|
|
:search-url "https://en.wikipedia.org/w/index.php?search=~a"
|
|
:fallback-url (quri.uri:uri "https://en.wikipedia.org/"))
|
|
(make-instance 'search-engine
|
|
:name "MyNixOS"
|
|
:shortcut "nix"
|
|
:search-url "https://mynixos.com/search?q=~a"
|
|
:fallback-url (quri.uri:uri "https://mynixos.com/"))
|
|
(make-instance 'search-engine
|
|
:name "DuckDuckGo"
|
|
:shortcut "ddg"
|
|
:search-url "https://duckduckgo.com/?q=~a"
|
|
:fallback-url (quri.uri:uri "https://duckduckgo.com/"))))))
|
|
(load "~/.config/nyxt/theme.lisp")
|