如何配置CIDER REPL,使其仅在需要显示结果时才滚动?
默认情况下,即使有足够的空间,CIDER REPL(0.18.0)始终在显示结果时将其滚动到窗口底部。
我发现这很刺耳。我被迫在窗口底部键入以防止出现“跳转”。理想情况下,在此示例中不应该发生滚动。 (仅当结果比该点下方的空间长时,该点才应滚动到底部。)
答案 0 :(得分:2)
这似乎是由自定义变量cider-repl-scroll-on-output
控制的:
(defcustom cider-repl-scroll-on-output t
"Controls whether the REPL buffer auto-scrolls on new output.
When set to t (the default), if the REPL buffer contains more lines than the
size of the window, the buffer is automatically re-centered upon completion
of evaluating an expression, so that the bottom line of output is on the
bottom line of the window.
If this is set to nil, no re-centering takes place."
:type 'boolean
:group 'cider-repl
:package-version '(cider . "0.11.0"))
尝试将其值从默认的t
更改为nil
。