-
Notifications
You must be signed in to change notification settings - Fork 1
/
init.lisp
32 lines (27 loc) · 1.11 KB
/
init.lisp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
(in-package #:nyxt-user)
;;loading of config files
;;add theme here
(nyxt::load-lisp "~/.config/nyxt/themes/standard-dark.lisp")
;;base
(nyxt::load-lisp "~/.config/nyxt/base/keybindings.lisp")
(nyxt::load-lisp "~/.config/nyxt/base/urlprompt.lisp")
(nyxt::load-lisp "~/.config/nyxt/base/commands.lisp")
(nyxt::load-lisp "~/.config/nyxt/base/glyphs.lisp")
;;extending
(nyxt::load-lisp "~/.config/nyxt/ex/specificurl.lisp")
;;configuration for browser
(define-configuration browser
((session-restore-prompt :never-restore)))
;;configuration for buffer and nosave buffer to have reduce tracking by default
(define-configuration (web-buffer nosave-buffer)
((default-modes `(reduce-tracking-mode
,@%slot-default%))))
;;setting new buffer url and having nyxt start full screen
(defmethod nyxt::startup ((browser browser) urls)
"Home"
(window-make browser)
(let ((window (current-window)))
(window-set-buffer window (make-buffer :url (quri:uri "https://nyxt.atlas.engineer/")))
(toggle-fullscreen window)))
;;when reloading init.lisp file shows in message bar once finished
(echo "Loaded config.")