|
From: | Stefan Monnier |
Subject: | Re: Use emacs.desktop when starting emacs from a particular directory |
Date: | Fri, 02 Nov 2018 23:15:59 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> 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`). BTW, why to you call (desktop-save-mode 1) twice? Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |