summaryrefslogtreecommitdiff
path: root/.config/nyxt/keys.lisp
blob: 5ede9f52b45c8e9f4345f61f15a900235f29561e (about) (plain)
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
(in-package #:nyxt-user)

(define-configuration buffer
  ((default-modes
       (pushnew 'nyxt/mode/emacs:emacs-mode %slot-value%))))

;; (define-configuration input-buffer
;;   ((override-map
;;     (let ((map (make-keymap "override-map")))
;;       (define-key map "M-x" 'execute-command "C-space" 'nothing)))))


(define-configuration :document-mode
  "Add basic keybindings."
  ((keyscheme-map
    (keymaps:define-keyscheme-map
	"custom" (list :import %slot-value%)
      nyxt/keyscheme:emacs
      (list "C-c p" 'copy-password
	    "C-c u" 'copy-username
	    "C-c y" 'autofill
	    "C-c v" 'visual-mode
	    "C-f" :history-forwards-maybe-query
	    "C-x C-f" 'follow-hint
	    "C-s" :search-buffer)))))