help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: desktop-dirname can't be modified?


From: Juanma Barranquero
Subject: Re: desktop-dirname can't be modified?
Date: Sat, 15 Nov 2008 14:29:38 +0100

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/")

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]