unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Use emacs.desktop when starting emacs from a particular directory
@ 2018-11-01 15:58 Steinar Bang
  2018-11-01 18:31 ` Eli Zaretskii
  0 siblings, 1 reply; 13+ messages in thread
From: Steinar Bang @ 2018-11-01 15:58 UTC (permalink / raw)
  To: help-gnu-emacs

Platform: debian 9.1 "stretch", amd64
          emacs 25.1


I would like emacs to use the ~/workspaces/.emacs.desktop when started
in a particular manner by a script, and not use a desktop file otherwise
(when SSH'ing in I would like to restore my development session as much
as possible).

The way I've tried to accomplish it is by starting emacs with the
following commands:
 cd ~/workspaces
 emacs --eval "(progn (setq desktop-path (expand-file-name \"~/workspaces\")) (desktop-save-mode 1))" >/dev/null 2>&1 &

However, the desktop file used is actually ~/.emacs.d/.emacs.desktop and
a ~/.emacs.d/.emacs.desktop.lock file is created as well, and all
emacses started by my user on this computer tries to use the desktop
file (which is not what I want).

Is there a way to accomplish what I'm trying to do?

Thanks!


- Steinar



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2018-11-03  8:40 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-01 15:58 Use emacs.desktop when starting emacs from a particular directory Steinar Bang
2018-11-01 18:31 ` Eli Zaretskii
2018-11-02 19:18   ` Steinar Bang
2018-11-02 20:23     ` Stefan Monnier
2018-11-02 21:08       ` Steinar Bang
2018-11-02 21:20         ` Stefan Monnier
2018-11-02 23:41           ` Steinar Bang
2018-11-03  3:15             ` Stefan Monnier
2018-11-03  8:01               ` Steinar Bang
2018-11-03  8:03               ` Eli Zaretskii
2018-11-03  8:40                 ` Steinar Bang
2018-11-02 21:32     ` Eli Zaretskii
2018-11-02 23:18       ` Steinar Bang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).