tags:

views:

65

answers:

3

Hello,

I'm a little bit out of my mind already so sorry for my language.. I just wanna kill somebody for now, so ofcourse SO is great place to search for normal help. it took really a lot of time to get used to emacs. I like the way it handles everything with shortcuts, that's why VIM is banned for my soul. I just fill I'll give up soon, because 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.

splited 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. PLEASE..

when I need any normal feature for emacs it always tons of scripts need 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 so much elementary things is not integrated already??? It's getting on my nerves.. how the f*ck it's possible to work with this thing??

Any good books for idiots like me?

+1  A: 

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)))
saschwarz
will this save splited windows also? I have 3 windows usually, in one it's shell in other two, 2 files opened. will this save a position of windows also? btw im using emacs in shell,
holms
I don't believe it saves the splits or split locations (doesn't in my version). Not sure if you mean splitting the visible frame into 3 buffers or launching 3 frames; but either way AFAIK it only reloads the files you had open when you exited and remembers your edit location in each. So you would have to resplit and change each buffer to your desired file. You'll have to relaunch the shell from w/in emacs.
saschwarz
in fact question was: can i save buffer split positions?? can I make a config or something like that ? (everytime I enter to emacs, i want to see my splited buffer with my width and height which were set before)
holms
A: 

Not sure whether it is nearing to what you want, but give it a try: http://www.emacswiki.org/emacs/LayoutRestore

sstotok
No it's not. After quitting emacs, after I wake up in the morning, I want to continue with the same layout as it was before. Same splits, same files opened in them, same width/heigh of the splits..everything THE SAME as it was before quiting emacs.. Every editor has things like that. I hate VIM but in vim you can restore everything back as it was...
holms
A: 

I have this working emacs always starts back up exactly as I left it, unless it crashes...

http://www.gentei.org/~yuuji/software/windows.el

Which will save all window spits and open buffers.

http://www.emacswiki.org/emacs/SavePlace

Will save your place in files. Here roughly how to set it up:

(require 'windows)
(require 'recentf)
;; -- load the saved windows automatically on boot
(add-hook 'window-setup-hook 'resume-windows)
;; -- save place in file
(setq-default save-place t)
;; --  use this command to quit and save your setup
(define-key ctl-x-map "C" 'see-you-again)

;; -- set up window saving !! Place at end of .emacs file
(win:startup-with-window)
openist