问题描述
我在带有SLIME的repl的emacs上使用paredit.这意味着在我输入REPL的任何时候,我的S表达式都是平衡的.
I use paredit on emacs with SLIME's repl. This means that at any point during my typing on the repl, my s-expressions are balanced.
但是,它们可能并不完整,我可能想继续在另一行中键入内容,如下所示:
However, they may not be complete, and I might want to continue typing inside them in another line, as follows:
CL-USER> (defun print-hello ()
)
但是,当我通过按Enter键开始新行时,SLIME repl将执行我的不完整表达式.我希望它等待我完成表达式,如下所示:
When I start a new line by pressing the enter key, however, the SLIME repl executes my incomplete expression. I want it to wait for me to complete the expression, as follows:
CL-USER> (defun print-hello ()
(format t "Hello, world"))
请问我该如何做到这一点?
How do I make this happen please?
推荐答案
与您的问题有关的 lispy 提供与SLIME的集成.
Related to your question, lispy provides integration with SLIME.
我通常永远不会在REPL缓冲区中输入任何内容.相反,我在源文件中编辑了所有代码,并使用评估当前的sexp.
I typically never type anything into the REPL buffer. Instead, I edit all code in place in the source file, and use to eval the current sexp.
lispy
也是 paredit
的超集.
这篇关于在remac中具有paredit的Emacs上的SLIME-如何防止执行不完整但平衡的表达式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!