[ESS] how to change default emacs behavior, upon running R code, from 2 side-by-by side frames to top-and-bottom frames?
Marc Schwartz
m@rc_@chw@rtz @end|ng |rom me@com
Tue Nov 10 14:51:43 CET 2020
Hi,
FWIW, I had the same issue at some point in the past, and I have the following in my .emacs to change the behavior:
(add-to-list 'display-buffer-alist '("*R" (display-buffer-reuse-window display-buffer-at-bottom)
(window-width . 0.5) (reusable-frames . nil)))
That was provided here on the list some time ago, and perhaps there is a more recent incantation, if things have changed since then.
Regards,
Marc Schwartz
> On Nov 10, 2020, at 8:37 AM, Tyler Smith via ESS-help <ess-help using r-project.org> wrote:
>
> Christopher W. Ryan via ESS-help writes:
>
>> When I execute a line of R code, the R buffer opens up as expected, but
>> it opens in a frame adjacent to the frame containing my source buffer. I
>> would like it to open the R buffer as a frame below my source code,
>> rather than adjacent to it.Â
>>
>> How can I change the behavior from side-side frames to top-bottom frames?
>
> In base Emacs, this is controlled by the variables `split-height-threshold` and `split-width-threshold`. Setting split-height-threshold to a lower value (default is 80), and the width threshold to a higher value, will prioritize splitting top/bottom over right/left.
>
> The info node for this is: (emacs) Window Choice
>
> Best,
>
> Tyler
>
> --
> Tyler Smith
> plantarum.ca
>
> ______________________________________________
> ESS-help using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
More information about the ESS-help
mailing list