Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remember all opened files with split windows and their positions in Emacs

Tags:

emacs

It took really a lot of time to get used to Emacs, but everything I want to have from normal editor like Coda, is just impossible without additional scripts.

I want to restore everything like it was before.

Split windows, their position, opened files/shells/debugger. Everything back to as it was. Coda can do this, Eclipse can do this, anything can do this.

When I need any normal feature for Emacs it always needs tons of scripts to have it. I thought I really would die with pyflakes, code-color, shrink-windows bindings and 20 other scripts which I even don't remember... Why are so many elementary things not integrated already???

Any good books for beginners?

like image 547
holms Avatar asked Sep 25 '10 04:09

holms


1 Answers

Take a look under "Options" > "Customize Emacs".

It sounds like you want to enable two features:

  • "Save Place" which saves the location in each file the next time you load it.
  • "Desktop" which saves all the files you currently have loaded.

Or if you feel like editing your .emacs file:

(custom-set-variables
  ;; custom-set-variables was added by Custom.
  ;; If you edit it by hand, you could mess it up, so be careful.
  ;; Your init file should contain only one such instance.
  ;; If there is more than one, they won't work right.
  '(desktop-enable t nil (desktop))
  '(save-place t nil (saveplace)))
like image 73
saschwarz Avatar answered Oct 04 '22 10:10

saschwarz