summaryrefslogtreecommitdiff
path: root/.config/nyxt/keys.lisp
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-02-02 17:53:26 +0200
committerThanos Apollo <[email protected]>2024-02-02 17:53:26 +0200
commit687a0fa8c2e757bc848d7da1abe610b12445a198 (patch)
tree85c86175df577a03e4f7150cc4a37fc7f319c18d /.config/nyxt/keys.lisp
parent0fadc070ad985c7d3d9dd611d180bf6a9688203f (diff)
nyxt: Rename modules as keys & style
Diffstat (limited to '.config/nyxt/keys.lisp')
-rw-r--r--.config/nyxt/keys.lisp25
1 files changed, 25 insertions, 0 deletions
diff --git a/.config/nyxt/keys.lisp b/.config/nyxt/keys.lisp
new file mode 100644
index 0000000..6b6f83a
--- /dev/null
+++ b/.config/nyxt/keys.lisp
@@ -0,0 +1,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-s" :search-buffer
+ "C-l" 'thanos/set-url
+ "M-l" 'thanos/set-url-new-buffer)))))