emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to restore the layout?


From: Angelo Graziosi
Subject: Re: How to restore the layout?
Date: Thu, 27 Jun 2013 16:31:29 +0200
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:17.0) Gecko/20130509 Thunderbird/17.0.6

Il 27/06/2013 16.05, Juanma Barranquero ha scritto:
On Thu, Jun 27, 2013 at 3:29 PM, Angelo Graziosi
<address@hidden> wrote:

I have just bootstrapped Emacs r.113205 and it *does not* restore
anything... :-( only a single frame and a single window...

etc/NEWS says:

*** `desktop-save-windows' enables saving and restoring the window/frame
configuration.

so try setting (or customizing) it to t.

So what am I missing? In .emacs.d/init.el I have desktop-save true.. what
else I need?

I'd recommend editing the desktop save file and removing by hand the
old window-save variable. In fact it shouldn't cause a problem,
because I renamed it, but the old var is now just cruft.

I don't understand here.. In my /~/.emacs.d/init.el I have

;; Instead to save in ~/.emacs.desktop
(setq desktop-base-file-name "~/.emacs.d/desktop")

;; Instead to save in ~/.emacs.desktop.lock
(setq desktop-base-lock-name "~/.emacs.d/desktop.lock")

;; For the moment in Emacs there is an 'illogic'
;; it saves, on desktop file, the flyspell-mode
;; BUT NOT the dictionary with which the buffer
;; is spelled. We have added 'ispell-local-dictionary',
;; as suggested by emacs-devel list, hoping the things
;; is reguralized in the future.
(setq desktop-locals-to-save
      (cons 'ispell-local-dictionary desktop-locals-to-save))

;; Save desktop
(desktop-save-mode t)

and now I have added

(setq desktop-save-windows t)


Which "desktop save file" are you talking about? Perhaps "~/.emacs.d/desktop"?

I have tried

$ grep window .emacs.d/desktop

but found anything called "window-save"...

So I am a little confused.

Any way, adding "setq desktop-save-windows t" in my init file seem to work.

I notice only that if I close Emacs (the session) with the frame full maximized (the button of the system window activated), the next time I restart Emacs (the next session), the frame has almost the same size of previous session (just the height one line sorter) but the maximized button not active. If I have read correctly this, at the moment, is to be expected.

Many thanks for having added this to Emacs!


Ciao,
  Angelo.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]