[Top][All Lists]

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

Re: About desktop file

From: Eli Zaretskii
Subject: Re: About desktop file
Date: Tue, 13 Sep 2016 17:22:53 +0300

> From: Angelo Graziosi <address@hidden>
> Date: Mon, 12 Sep 2016 22:07:17 +0200
> On EmacsWiki [1], I find
> 'To change the default font for the current frame, as well as future 
> frames, put either of these in your init file:
> (set-face-attribute 'default nil :font FONT ))
> (set-frame-font FONT nil t)
> where FONT is a string naming the font you want, for example, "Droid 
> Sans Mono-10"'

This is no longer accurate when desktop-save mode is in effect.

> The question, then, is: How an user can change the default font so that 
> this change in the init file is honored also by desktop file? What to 
> put in the init file..

I think Martin explain how to achieve that: you need to customize the
list of frame parameters that are not restored from the desktop file.
The corresponding variable belongs to frameset.el because this is the
infrastructure used by desktop.el to save/restore frames.

Alternatively, you could customize desktop not to restore frames.

reply via email to

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