Default Broken Window Layout

I use aquamacs 90% of the time to edit R files using ESS (Emacs Speaks Statistics). In this mode, I consider it necessary to have a broken Cx 3 Cx 2 window so that I can view the source code and the R buffer (terminal window) at the same time. Thus, every time I start aquamacs, I need to follow these steps: split the window, select the correct one, switch the buffer to *R* , go back to the file. How to save this setting in sessions?

thanks.

+4
source share
3 answers

There is Cc Cz (ess-switch-to-end-of-ESS) that splits and switches to the end of the lower buffer. I use it all the time.

+4
source

Try the following:

 (defun open-r-project () (interactive) (delete-other-windows) (split-window-horizontally) (R) (ess-change-directory "~/projects/") (next-multiframe-window) (find-file "~/projects/") (previous-multiframe-window) ) (global-set-key (kbd "Cc r") 'open-r-project) 

Please note, however, that this is my first LISP function. I do not know how to configure the project dir parameter. Let's try tomorrow. Oh, and note that I'm using the SVN version of ESS.

+5
source

There are several packages that do such things. It seems that layout-restore is probably the most suitable, but you can see all the entries on the Emacs wiki in the "Switching Window" Configurations " Category of Windows .

+2
source

Source: https://habr.com/ru/post/1390720/


All Articles