elisp - How to Save all edited-situations and resume all the situations from the last time when opening Emacs again -


i learned add codes in .emacs can make emacs saves automatically situations before quitting , start next time, emacs can show last situation , go on editing it.

(load "desktop") (desktop-load-default) (desktop-read) (add-hook 'kill-emacs-hook '(lambda()(desktop-save "~/"))) 

but codes makes problem can open 1 emacs, when want start emacs @ same time, previous 1 can run.

i want function saving situations next use, need start 1 more emacs, how can 2 sides work simultaneously?

thank help. waiting......

use different desktop files; or use emacsclient instead of emacs start new editing buffers once have main emacs , running. there multiple examples in google of emacs alias / function / whatever start emacs if not running, , otherwise run emacsclient.


Comments

Popular posts from this blog

JQuery Autocomplete without using label, value, id -

c++ - Accessing inactive union member and undefined behavior? -

JAVA - what is the difference between void and boolean methods? -