keybinds.lisp 727 B

1234567891011121314151617181920212223
  1. (in-package #:nyxt-user)
  2. ;;; Add basic keybindings.
  3. ;;;
  4. ;;; If you want to have VI bindings overriden, just use `scheme:vi-normal' or `scheme:vi-insert'
  5. ;;;
  6. ;;; nyxt/web-mode: is the package prefix. Usually is just nyxt/ and mode name.
  7. (define-configuration nyxt/web-mode:web-mode
  8. ((nyxt/web-mode::keymap-scheme
  9. (define-scheme (:name-prefix "web" :import %slot-default%)
  10. scheme:vi-insert
  11. (list
  12. "C-:" 'eval-expression))))
  13. ((nyxt/web-mode::keymap-scheme
  14. (define-scheme (:name-prefix "web" :import %slot-default%)
  15. scheme:vi-normal
  16. (list
  17. "}" 'nyxt/web-mode:history-forwards-maybe-query
  18. "i" 'nyxt/input-edit-mode:input-edit-mode
  19. "C-:" 'eval-expression)))))