[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: |
Thu, 01 Nov 2018 20:31:33 +0200 |
> From: Steinar Bang <sb@dod.no>
> Date: Thu, 01 Nov 2018 16:58:45 +0100
>
> 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 &
AFAIK, the above is a mistake: desktop-path should be a list of
strings, not a single string. (I use this feature since time
immemoriam, and it works for me every time.)
P.S. Any variable whose name ends in "-path" signals that it's a list
of directory names.
- Use emacs.desktop when starting emacs from a particular directory, Steinar Bang, 2018/11/01
- Re: Use emacs.desktop when starting emacs from a particular directory,
Eli Zaretskii <=
- Re: Use emacs.desktop when starting emacs from a particular directory, Steinar Bang, 2018/11/02
- Re: Use emacs.desktop when starting emacs from a particular directory, Stefan Monnier, 2018/11/02
- Re: Use emacs.desktop when starting emacs from a particular directory, Steinar Bang, 2018/11/02
- Re: Use emacs.desktop when starting emacs from a particular directory, Stefan Monnier, 2018/11/02
- Re: Use emacs.desktop when starting emacs from a particular directory, Steinar Bang, 2018/11/02
- Re: Use emacs.desktop when starting emacs from a particular directory, Stefan Monnier, 2018/11/02
- Re: Use emacs.desktop when starting emacs from a particular directory, Steinar Bang, 2018/11/03
- Re: Use emacs.desktop when starting emacs from a particular directory, Eli Zaretskii, 2018/11/03
- Re: Use emacs.desktop when starting emacs from a particular directory, Steinar Bang, 2018/11/03
- Re: Use emacs.desktop when starting emacs from a particular directory, Eli Zaretskii, 2018/11/02