Skip to content

Commit f02fc1e

Browse files
author
Danny O'Brien
committedFeb 26, 2023
nyxt: Add some keybindings.
1 parent cda9e97 commit f02fc1e

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed
 

‎nyxt/.config/nyxt/init.lisp

+15-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
(defvar *my-search-engines*
1919
(list
20-
'("b" "https://search.brave.com/search?q=~a")
21-
'("g" "https://www.google.com/?q=~a")))
20+
'("g" "https://www.google.com/?q=~a")
21+
'("b" "https://search.brave.com/search?q=~a")))
2222

2323
(define-configuration buffer
2424
((search-engines (append %slot-default%
@@ -54,6 +54,19 @@
5454
(defvar +youtube-dl-command+ "youtube-dl"
5555
"/home/danny/.local/bin/yt-dlp")
5656

57+
(define-configuration base-mode
58+
((keymap-scheme
59+
(define-scheme (:name-prefix "my-base" :import %slot-default%)
60+
scheme:vi-normal
61+
(list "g b" (make-command switch-buffer* ()
62+
(switch-buffer :current-is-last-p t)))))))
63+
64+
(define-configuration buffer
65+
((override-map
66+
(let ((map (make-keymap "override-map")))
67+
(define-key map
68+
"C-w" 'delete-current-buffer)))))
69+
5770
(define-configuration browser
5871
((session-restore-prompt :always-restore)))
5972

0 commit comments

Comments
 (0)
Please sign in to comment.