[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Restarting Emacs?
From: |
Lennart Borgman |
Subject: |
Re: Restarting Emacs? |
Date: |
Thu, 30 Jul 2009 03:59:22 +0200 |
On Thu, Jul 30, 2009 at 2:21 AM, Lennart
Borgman<lennart.borgman@gmail.com> wrote:
> On Wed, Jul 29, 2009 at 1:53 PM, Elena<egarrulo@gmail.com> wrote:
>> Hello,
>>
>> can you make Emacs restart itself a la Firefox (for instance: after an
>> heavy update of initialization file)?
>
>
> You mean with all the files you have opened etc? For that you can use
> desktop-mode.
>
> Stopping and starting Emacs itself by hand is not a very big problem,
> or? If you think so then you could write a function that does:
>
> 1) adds a function that start a new Emacs instance last in the hook
> kill-emacs-hook.
> 2) Kills emacs
Kind of unnecessary, but ...
I wrote a function emacs-restart that you can grab from the file
ourcomments-util.el in nXhtml (currently only in the Launchpad
repository).