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

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

Re: Use emacs.desktop when starting emacs from a particular directory


From: Eli Zaretskii
Subject: Re: Use emacs.desktop when starting emacs from a particular directory
Date: Sat, 03 Nov 2018 10:03:51 +0200

> From: Stefan Monnier <monnier@iro.umontreal.ca>
> Date: Fri, 02 Nov 2018 23:15:59 -0400
> 
> >  emacs --eval "(progn (progn (setq desktop-path (list (expand-file-name 
> > \"~/workspaces\"))) (desktop-save-mode 1)) (desktop-save-mode 1))" 
> > >/dev/null 2>&1 &
> 
> desktop.el only automatically reads the desktop file if
> desktop-save-mode is enabled and only right after reading the init file.

So perhaps a better solution to the above would be to make some part
of .emacs conditional on some environment variable, and set that
variable in the script?



reply via email to

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