fix(factor): repl handler
Otherwise `+eval/open-repl-*` commands will emit "REPL handler X failed to return a buffer" errors. Fix: #7788 Co-authored-by: steve-ayerhart <steve-ayerhart@users.noreply.github.com>
This commit is contained in:
parent
0cf7824256
commit
854f4103ff
2 changed files with 12 additions and 1 deletions
8
modules/lang/factor/autoload.el
Normal file
8
modules/lang/factor/autoload.el
Normal file
|
@ -0,0 +1,8 @@
|
|||
;;; lang/factor/autoload.el -*- lexical-binding: t; -*-
|
||||
|
||||
;;;###autoload
|
||||
(defun +factor/open-repl ()
|
||||
"Open the Factor Listener."
|
||||
(interactive)
|
||||
(call-interactively #'run-factor)
|
||||
(current-buffer))
|
|
@ -5,7 +5,10 @@
|
|||
:init
|
||||
(after! factor-mode
|
||||
(set-eval-handler! 'factor-mode #'fuel-eval-region)
|
||||
(set-repl-handler! 'factor-mode #'run-factor))
|
||||
(set-repl-handler! 'factor-mode #'+factor/open-repl
|
||||
:persist t
|
||||
:send-region #'fuel-eval-region
|
||||
:send-buffer #'fuel-run-file))
|
||||
:config
|
||||
(set-lookup-handlers! 'factor-mode
|
||||
:definition #'fuel-edit-word-at-point
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue