all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / 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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.