From: Giorgos Keramidas <keramida@ceid.upatras.gr>
To: help-gnu-emacs@gnu.org
Subject: Re: Restarting Emacs?
Date: Thu, 30 Jul 2009 01:13:30 +0300 [thread overview]
Message-ID: <87y6q7gmt1.fsf@kobe.laptop> (raw)
In-Reply-To: 35bb8492-cd5b-4001-bcc0-d33f2f92894f@w41g2000yqb.googlegroups.com
On Wed, 29 Jul 2009 04:53:54 -0700 (PDT), Elena <egarrulo@gmail.com> wrote:
> Hello,
> can you make Emacs restart itself a la Firefox (for instance: after an
> heavy update of initialization file)?
Not really, no. At least not _exactly_ what Firefox does, AFAICT.
You can, however, evaluate Lisp snippets in a *scratch* buffer as you
are editing your start-up code. I often pull my `~/.gnus.el' in the
*scratch* buffer; copy parts of the Lisp code; then I modify them and
evaluate them in order (by typing `C-x C-e' after one or more s-exps).
When everything works I save the new Lisp code in my `~/.gnus.el' file
for later.
Now, if what you want is some sort of `session' support in Emacs, to
save a set of open buffers, and other runtime state, the `desktop'
library may be useful. It is available in GNU Emacs 22 and it supports
parts of what Firefox does for GNU Emacs buffers.
See the manual for full details. Look for the word `desktop' in the
index of the manual, and you'll quickly find this section:
,---[ C-h r i desktop RET ]--------------------------------------------
|
| 51 Saving Emacs Sessions
| ************************
|
| Use the desktop library to save the state of Emacs from one session to
| another. Once you save the Emacs "desktop"--the buffers, their file
| names, major modes, buffer positions, and so on--then subsequent Emacs
| sessions reload the saved desktop.
|
| ...
|
`-----------------------------------------------------------------------
next prev parent reply other threads:[~2009-07-29 22:13 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-29 11:53 Restarting Emacs? Elena
2009-07-29 22:13 ` Giorgos Keramidas [this message]
2009-07-29 22:57 ` Ian Eure
2009-07-30 0:08 ` Sven Bretfeld
2009-07-30 0:21 ` Lennart Borgman
2009-07-30 1:59 ` Lennart Borgman
[not found] ` <mailman.3422.1248908240.2239.help-gnu-emacs@gnu.org>
2009-07-30 7:49 ` Elena
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=87y6q7gmt1.fsf@kobe.laptop \
--to=keramida@ceid.upatras.gr \
--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).