From: Jean Louis <bugs@gnu.support>
To: Gottfried <gottfried@posteo.de>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: saving window configurations in register
Date: Sun, 25 Dec 2022 19:50:56 +0300 [thread overview]
Message-ID: <Y6h/cDp8rWJCqrNH@protected.localdomain> (raw)
In-Reply-To: <5191862c-d42b-1122-6103-f7019c22feac@posteo.de>
* Gottfried <gottfried@posteo.de> [2022-12-25 17:56]:
> I want that Emacs starts with the frame/window configuration I saved
> before. e.g. the whole screen is divided into two buffers side by
> side with 2 different files open.
Good idea.
I recommend that you read in Emacs Manual following section:
(info "(emacs) Saving Emacs Sessions")
You may simply evaluate the above line in Emacs to get quicker to it.
> How to do that?
There are several ways, and by using the built-in option, you simply
do:
M-x desktop-save
to save buffers, and window configuration, and:
M-x desktop-read
to read the configuration back into Emacs.
Please read in the Info Manual how to enable the option upon startup.
> C-x r w r a (a as register a) I tried, but it does not save it.
I think it is only:
C-x r w REGISTER -- to insert window configuration into register.
there is no "r" after "r w" that I know.
And to restore it, it is:
C-x r j
> Because when I open emacs again, nothing is saved in my registers
Registers are not automatically saved when you exit Emacs. That means the state of window configuration will be deleted from memory when Emacs exits.
Package that could help with persistent state over sessions may be also following:
session - MELPA:
https://melpa.org/#/session
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
next prev parent reply other threads:[~2022-12-25 16:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-25 14:53 saving window configurations in register Gottfried
2022-12-25 16:50 ` Jean Louis [this message]
2022-12-26 16:33 ` roadie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y6h/cDp8rWJCqrNH@protected.localdomain \
--to=bugs@gnu.support \
--cc=gottfried@posteo.de \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).