aboutsummaryrefslogtreecommitdiff
path: root/misc/.config/nyxt
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2023-08-14 18:36:10 +1000
committerYuchen Pei <id@ypei.org>2023-08-14 18:36:10 +1000
commita963e0e9c50b4673610c80566b647452c70bcbca (patch)
treee46bf68a1c9be8ed01ac6e16119cc1166c1038ff /misc/.config/nyxt
parentebbb7679fec3f5b880fe4b941470ca80ddc6a220 (diff)
[nyxt] Some more nyxt keybinding tweaks
Diffstat (limited to 'misc/.config/nyxt')
-rw-r--r--misc/.config/nyxt/config.lisp12
1 files changed, 11 insertions, 1 deletions
diff --git a/misc/.config/nyxt/config.lisp b/misc/.config/nyxt/config.lisp
index 7238e81..669724e 100644
--- a/misc/.config/nyxt/config.lisp
+++ b/misc/.config/nyxt/config.lisp
@@ -36,6 +36,10 @@
"Set up Emacs keybindings everywhere possible."
((default-modes `(:emacs-mode ,@%slot-value%))))
+(define-configuration :hint-mode
+ "Set up QWERTY home row as the hint keys."
+ ((hints-alphabet "ASDFGHJKL")))
+
(define-configuration :document-mode
"Document mode keybindings."
((keyscheme-map
@@ -47,18 +51,24 @@
"F" 'switch-buffer-next
"b" 'scroll-left
"f" 'scroll-right
- "j" 'jump-to-heading
+ "i" 'jump-to-heading
"g" 'reload-current-buffer
+ "j" 'follow-hint
+ "J" 'follow-hint-new-buffer
"k" 'delete-current-buffer
+ "l" 'history-bakcwards
"n" 'scroll-down
"o" 'set-url
"p" 'scroll-up
+ "r" 'history-forwards
"w" 'copy-url
"<" 'scroll-to-top
">" 'scroll-to-bottom
"C-h x" 'describe-command
"C-s" :search-buffer
"C-z" 'switch-buffer
+ "M-n" 'next-heading
+ "M-p" 'previous-heading
)))))
(define-configuration :prompt-buffer-mode