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

javascript - backbone.js Collection.add() doesn't `construct` (`initialize`) an object -

php - Get uncommon values from two or more arrays -

Adding duplicate array rows in Php -