[Top][All Lists]

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

Re: desktop-dirname can't be modified?

From: anhnmncb
Subject: Re: desktop-dirname can't be modified?
Date: Sat, 15 Nov 2008 22:09:18 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix)

"Juanma Barranquero" <address@hidden> writes:

> On Sat, Nov 15, 2008 at 13:42, anhnmncb <address@hidden> wrote:
>> I try to change it to "~/.emacs.d/" but without lucky, everytime I
>> restart emacs, it always restores to "~/home/myname", why? What should I
>> have missed?
> What are you trying to do, exactly?
> If what you want is to have just one desktop file, stored in
> ~/.emacs.d/, you can add this to your .emacs:
>    (desktop-save-mode 1)
>    (add-to-list 'desktop-path "~/.emacs.d/")

It works, thank you, I think the desktop-dirname's docstring makes me

desktop-dirname is a variable defined in `desktop.el'.
Its value is "/home/anhnmncb/"

The directory in which the desktop file should be saved.

> though, if you occasionally want to have directory-specific desktop
> files is better to put it after ".":
>   (setq desktop-path '("." "~/.emacs.d/" "~"))
> Does this help you?
>   Juanma

reply via email to

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