init.lisp 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. ;;; https://nyxt.atlas.engineer/article/getting-started-on-nyxt-hacking-1-bookmarklet.org
  2. (in-package #:nyxt-user)
  3. ;;; Loading files from the `modules/` directory
  4. ;(load (nyxt-init-file "custom/keybinds.lisp"))
  5. (load (nyxt-init-file "custom/statusline.lisp"))
  6. ;(load (nyxt-init-file "custom/dashboard.lisp"))
  7. ;(load (nyxt-init-file "custom/colors.lisp"))
  8. (define-configuration browser
  9. ((session-restore-prompt :never) ; Don't restore browser
  10. (external-editor-program '("emacs")))) ; Set default editor
  11. ;(define-configuration prompt-buffer) ; Custom prompt pop-up
  12. ;;; Settings that every type of buffer should share.
  13. (define-configuration (buffer web-buffer internal-buffer editor-buffer prompt-buffer)
  14. ((default-modes
  15. (append
  16. '(
  17. nyxt::vi-normal-mode ; Vi keybindings.
  18. ) %slot-default%))))
  19. ;; Basic modes setup for web-buffers(like actually websites).
  20. (define-configuration web-buffer
  21. ((default-modes
  22. `(
  23. nyxt::vi-normal-mode ; Start with VI style keybinds
  24. ;auto-mode ; What's auto mode?
  25. blocker-mode ; Block a list of domains ; TODO: How do I configure the list?
  26. force-https-mode ; Force https in all urls
  27. ;reduce-tracking-mode ; Send a do not track request
  28. ,@%slot-default%)))) ; Add all modes from %slot-default% to default modes using a unquote-splicing form