fix(factor): package association for lookup handlers & keybinds
This ensures all these fuel keybinds on factor-mode-map (and the fuel-based lookup handlers) are associated with the fuel-mode package (in case the user disables the fuel package). Fix: #7788 Co-authored-by: steve-ayerhart <steve-ayerhart@users.noreply.github.com>
This commit is contained in:
parent
854f4103ff
commit
1f921ca7a7
1 changed files with 65 additions and 66 deletions
|
@ -8,27 +8,12 @@
|
|||
(set-repl-handler! 'factor-mode #'+factor/open-repl
|
||||
:persist t
|
||||
:send-region #'fuel-eval-region
|
||||
:send-buffer #'fuel-run-file))
|
||||
:config
|
||||
:send-buffer #'fuel-run-file)
|
||||
(set-lookup-handlers! 'factor-mode
|
||||
:definition #'fuel-edit-word-at-point
|
||||
:references #'fuel-show-callers
|
||||
:documentation #'fuel-help))
|
||||
|
||||
(map! :after fuel-help
|
||||
:map fuel-help-mode-map
|
||||
:localleader
|
||||
"e" #'fuel-help-edit
|
||||
"d" #'fuel-help-delete-bookmark
|
||||
"B" #'fuel-help-display-bookmarks
|
||||
"n" #'fuel-help-next
|
||||
"d" #'fuel-help-kill-page
|
||||
"p" #'fuel-help-previous
|
||||
"b" #'fuel-help-bookmark-page
|
||||
"e" #'fuel-help-edit)
|
||||
|
||||
(map! :after factor-mode
|
||||
:map factor-mode-map
|
||||
:documentation #'fuel-help)
|
||||
(map! :map factor-mode-map
|
||||
:localleader
|
||||
"t" #'fuel-test-vocab
|
||||
"F" #'fuel-run-file
|
||||
|
@ -65,9 +50,22 @@
|
|||
"i" #'fuel-refactor-inline-word
|
||||
"g" #'fuel-refactor-make-generic
|
||||
"u" #'fuel-update-usings
|
||||
"r" #'fuel-refactor-rename-word))
|
||||
"r" #'fuel-refactor-rename-word)))
|
||||
:config
|
||||
|
||||
(map! :after fuel-listener
|
||||
(map! :after fuel-help
|
||||
:map fuel-help-mode-map
|
||||
:localleader
|
||||
"e" #'fuel-help-edit
|
||||
"d" #'fuel-help-delete-bookmark
|
||||
"B" #'fuel-help-display-bookmarks
|
||||
"n" #'fuel-help-next
|
||||
"d" #'fuel-help-kill-page
|
||||
"p" #'fuel-help-previous
|
||||
"b" #'fuel-help-bookmark-page
|
||||
"e" #'fuel-help-edit)
|
||||
|
||||
(map! :after fuel-listener
|
||||
:map fuel-listener-mode-map
|
||||
:localleader
|
||||
"b" #'fuel-switch-to-buffer
|
||||
|
@ -77,4 +75,5 @@
|
|||
"r" #'fuel-refresh-all
|
||||
"i" #'fuel-stack-mode
|
||||
"h" #'fuel-help
|
||||
"s" #'fuel-scaffold-vocab)
|
||||
"s" #'fuel-scaffold-vocab))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue