在ESS/Emacs中,如何让R进程缓冲区在C-c C-j或C-c - R之后滚动到底部。

时间:2021-03-05 22:58:00

In ESS when I am evaluating chunks of code in a .R file using C-c C-j or C-c C-r (to send the line or region to a running R process), how can I get the R buffer to scroll down automatically, such that after evaluating a region the cursor is at the bottom, at the prompt?

在ESS当我评估的代码块使用碳碳C-j R文件或碳碳c - R(发送线或地区运行R过程),我怎样才能R缓冲自动向下滚动,这样评价一个地区后光标在底部,在提示符中?

Thanks.

谢谢。

2 个解决方案

#1


21  

Probably a bunch of ways to do it. In my .emacs.d I have

可能有很多方法。. emacs。维我

  (setq comint-prompt-read-only t)
  (setq comint-scroll-to-bottom-on-input t)
  (setq comint-scroll-to-bottom-on-output t)
  (setq comint-move-point-for-output t)

You might also be interested in this code, originally from Felipe Csaszar, which lets you do what you ask and a few other nice things besides.

您可能也会对这段代码感兴趣,这段代码来自于Felipe Csaszar,它可以让您做您想做的事情以及其他一些好的事情。

#2


1  

Have a look at auto-scrolling in emacs doc. For my part:

看看emacs doc中的自动滚动。对我来说:

customize-variable RET scroll-down-aggressively RET

customize-variable RET scroll-down-aggressively RET

scroll-down-aggressively set to 1 did the job.

这一工作由一开始就被设定为1。

#1


21  

Probably a bunch of ways to do it. In my .emacs.d I have

可能有很多方法。. emacs。维我

  (setq comint-prompt-read-only t)
  (setq comint-scroll-to-bottom-on-input t)
  (setq comint-scroll-to-bottom-on-output t)
  (setq comint-move-point-for-output t)

You might also be interested in this code, originally from Felipe Csaszar, which lets you do what you ask and a few other nice things besides.

您可能也会对这段代码感兴趣,这段代码来自于Felipe Csaszar,它可以让您做您想做的事情以及其他一些好的事情。

#2


1  

Have a look at auto-scrolling in emacs doc. For my part:

看看emacs doc中的自动滚动。对我来说:

customize-variable RET scroll-down-aggressively RET

customize-variable RET scroll-down-aggressively RET

scroll-down-aggressively set to 1 did the job.

这一工作由一开始就被设定为1。