aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuchen Pei <id@ypei.org>2023-09-09 14:47:33 +1000
committerYuchen Pei <id@ypei.org>2023-09-09 14:47:33 +1000
commitb619303c7bffdc570c6a0dd867341cb078f5f63a (patch)
tree8c13f5b6b355309be3fdd7cbcf255e8a3f19a3c8
parentce028e7abf5e9306838da4df01d3164ba6c78b80 (diff)
[nyxt] Update config documenting problems with hint-prompt binding
-rw-r--r--misc/.config/nyxt/config.lisp19
1 files changed, 16 insertions, 3 deletions
diff --git a/misc/.config/nyxt/config.lisp b/misc/.config/nyxt/config.lisp
index 669724e..ec430ec 100644
--- a/misc/.config/nyxt/config.lisp
+++ b/misc/.config/nyxt/config.lisp
@@ -22,7 +22,8 @@
;;; Commentary:
-;; My nyxt config.
+;; My nyxt config. It is not usable yet - see the part with
+;; prompt-buffer-mode binding
;;; Code:
@@ -71,6 +72,8 @@
"M-p" 'previous-heading
)))))
+;;; Does not work:
+;;; https://discourse.atlas.engineer/t/hint-prompt-not-showing-up/840
(define-configuration :prompt-buffer-mode
"Prompt buffer mode keybindings."
((keyscheme-map
@@ -79,6 +82,16 @@
;; It is important to have the `nyxt/' namespace here
nyxt/keyscheme:emacs
(list
- "C-s" 'next-suggestion
- "C-r" 'previous-suggestion
+ "C-s" 'nyxt/mode/prompt-buffer:next-suggestion
+ "C-r" 'nyxt/mode/prompt-buffer:previous-suggestion
)))))
+
+;;; Neither does this work
+;; (define-configuration :prompt-buffer-mode
+;; "Prompt buffer mode keybindings."
+;; ((override-map
+;; (let ((map (make-keymap "override-map")))
+;; (define-key map
+;; "C-s" 'nyxt/mode/prompt-buffer:next-suggestion
+;; "C-r" 'nyxt/mode/prompt-buffer:previous-suggestion
+;; )))))