Re: [External Email] Re: When the R window opens, sometimes it is side-by-side with my .Rnw file. I want them one above the other. It seems unpredictable
Karlo Guidoni Martins via ESS-help <[email protected]>
| Newsgroups | gmane.emacs.ess.general |
|---|---|
| Message-ID | <CANJyiGRAWjkXaZ4mqdk1SS_i21Ssk9HQW6UUKFY9THydDMLx2A@mail.gmail.com> |
Hi Chris, You can put this in your .emacs file. It should work. Let me know if everything went well. Best, Karlo On Thu, Jun 2, 2022 at 6:14 PM Christopher W. Ryan via ESS-help < [email protected]> wrote: > Karlo, can I put that in my .emacs file? I'm not yet familiar with > init.el. In fact, I can't find such a file on my system. Would I need > to create it? > > Thanks. > > --Chris > > Karlo Guidoni Martins wrote: > > You can control both window size and position setting the > > display-buffer-alist variable in your init.el file. The following > > snippet should work: > > (setq display-buffer-alist > > `(("*R" > > (display-buffer-reuse-window display-buffer-at-bottom) > > (slot . 1) > > (window-height . 0.3) > > (reusable-frames . 0))) > > > > Also, have a look at: > > https://ess.r-project.org/Manual/ess.html#Controlling-buffer-display > > > > > > > > > > On Fri, May 27, 2022, 18:27 Christopher W. Ryan via ESS-help > > <[email protected] <mailto:[email protected]>> wrote: > > > > I'm using Vince Goulet's modified version of emacs 26.2 (build 1, > > x86_64-w64-mingw32) of 2019-04-13 with ESS, on Windows 10. I use > Sweave > > and LaTeX, so I have my R code in .Rnw files. When I execute my first > > line of R code, an R buffer opens of course. I prefer it to be below > my > > Rnw buffer. Sometimes it is. But other times the R buffer opens to > the > > side. It's unpredictable, which is disconcerting; I have not been > able > > to discern a pattern. How can I ensure that every time emacs/ESS > opens > > an R buffer, the emacs window is split top-and-bottom, rather than > > side-by-side. > > > > Thanks. > > > > --Chris Ryan > > > > ______________________________________________ > > [email protected] <mailto:[email protected]> mailing list > > https://stat.ethz.ch/mailman/listinfo/ess-help > > > > ______________________________________________ > [email protected] mailing list > https://stat.ethz.ch/mailman/listinfo/ess-help > [[alternative HTML version deleted]] ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/ess-help