[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Use emacs.desktop when starting emacs from a particular directory
From: |
Steinar Bang |
Subject: |
Re: Use emacs.desktop when starting emacs from a particular directory |
Date: |
Sat, 03 Nov 2018 09:01:39 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (windows-nt) |
>>>>> Stefan Monnier <monnier@iro.umontreal.ca>:
>> 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 in the example above, desktop-save-mode is enabled too late
> but this to trigger, hence you'd need to explicitly ask desktop to
> read the file (by calling `desktop-read`).
Hm... what I actually want is to use a desktop file if it is in the
directory I'm starting in, but not otherwise. I guess a subset of Eli's
value would be the right thing of desktop-path would be the right thing.
Should I move the setting back into .emacs instead of the --eval, and
only call (desktop-save-mode 1) if the file is present?
> BTW, why to you call (desktop-save-mode 1) twice?
Copy-paste error. Thanks for catching it!
- 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, 2018/11/01
- 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 <=
- 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
- Re: Use emacs.desktop when starting emacs from a particular directory, Steinar Bang, 2018/11/02