ffevotte / desktop-plus

desktop+: extensions to Emacs' standard desktop library
GNU General Public License v3.0
63 stars 13 forks source link

How to save and restore a desktop in emacs? #25

Open RidaAyed opened 4 years ago

RidaAyed commented 4 years ago

Whatever desktop I save, after restarting emacs it's lost. What settings are required to simply reload one python (.py) buffer and a terminal (anyone is fine e.g. term, multiterm, ansi, eshell etc.) beside?

My workflow:

  1. Open file (sample.py)
  2. Open terminal
  3. m-x desktop+-create 'foo'
  4. Restart emacs after some time and doing anything else
  5. m-x desktop+-load (select foo in minibuffer)
  6. Get a completely different desktop than created in step 3

'(desktop-save nil) in init.el makes no difference

kenbolton commented 4 years ago

The above works for me in Spacemacs Mac OS Emacs 26.3.

RidaAyed commented 4 years ago

@kenbolton Even after reboot?

RidaAyed commented 4 years ago

@kenbolton Even after reboot?

RidaAyed commented 4 years ago

@kenbolton Even after reboot?

kenbolton commented 4 years ago

@kenbolton Even after reboot?

After quitting emacs clients & daemon, upon starting emacs I can load saved desktops.

RidaAyed commented 3 years ago

@kenbolton What emacs shell can you restore e.g. ansi-termin, vterm, something else?

kenbolton commented 3 years ago

@RidaAyed I removed desktop-plus from my setup a while ago in an effort to simplify my config. I used multi-term. I may explore aweshell going forward, but idk. Emacs is an embarrassment of riches.

RidaAyed commented 3 years ago

Thank you. May I ask how you restore your project terminals these days?

Ken Bolton @.***> writes:

@RidaAyed I removed desktop-plus from my setup a while ago in an effort to simplify my config. I used multi-term. I may explore aweshell going forward, but idk. Emacs is an embarrassment of riches.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.

kenbolton commented 3 years ago

Thank you. May I ask how you restore your project terminals these days?

I do it manually, if I shut down emacs at all.