diff options
author | Thanos Apollo <[email protected]> | 2023-09-27 02:10:25 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-09-27 02:10:25 +0300 |
commit | 47b73144d1b30514df003560851de3bd06e88b81 (patch) | |
tree | 27b0b2e914c6867d90f6ce456b123606803a8a09 /.config/nyxt/keybinds.lisp | |
parent | 696a16039e28e5844a164d69f60006b9c11a0067 (diff) |
[New] Add nyxt, slightly modified config from aartaka
Diffstat (limited to '.config/nyxt/keybinds.lisp')
-rw-r--r-- | .config/nyxt/keybinds.lisp | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/.config/nyxt/keybinds.lisp b/.config/nyxt/keybinds.lisp new file mode 100644 index 0000000..2eb5116 --- /dev/null +++ b/.config/nyxt/keybinds.lisp @@ -0,0 +1,34 @@ +(in-package #:nyxt-user) + +(define-configuration :document-mode + "Add basic keybindings." + ((keyscheme-map + (keymaps:define-keyscheme-map + "custom" (list :import %slot-value%) + ;; If you want to have VI bindings overriden, just use + ;; `scheme:vi-normal' or `scheme:vi-insert' instead of + ;; `scheme:emacs'. + nyxt/keyscheme:emacs + (list "C-c p" 'copy-password + "C-c y" 'autofill + "C-f" :history-forwards-maybe-query + "C-i" :input-edit-mode + "M-:" 'eval-expression + "C-s" :search-buffer + "C-x 3" 'hsplit + "C-x 1" 'close-all-panels + "C-'" (lambda-command insert-left-angle-quote () + (ffi-buffer-paste (current-buffer) "«")) + "C-M-'" (lambda-command insert-left-angle-quote () + (ffi-buffer-paste (current-buffer) "»")) + "C-M-hyphen" (lambda-command insert-left-angle-quote () + (ffi-buffer-paste (current-buffer) "—")) + "C-M-_" (lambda-command insert-left-angle-quote () + (ffi-buffer-paste (current-buffer) "–")) + "C-E" (lambda-command small-e-with-acute () + (ffi-buffer-paste (current-buffer) "é")) + "C-A" (lambda-command small-a-with-acute () + (ffi-buffer-paste (current-buffer) "á")) + "C-I" (lambda-command small-i-diaeresis () + (ffi-buffer-paste (current-buffer) "ï")) + "C-h hyphen" 'clcs-lookup))))) |