Answers to: Best emacs workspace solution?http://linuxexchange.org/questions/642/best-emacs-workspace-solution<p>I use emacs for working on various projects in different programming languages. While working on those projects, I modify the environment a lot. Most notably, I split the window in a specific way, load a lot of files and sometimes change the mode on those files.</p> <p>Everytime I start working on a project, I have to make those same changes. Furthermore, changing between the projects is a pain.</p> <p>While I know of desktop-mode, it doesn't solve problems like window splitting.</p> <p>What I would like to have is something like eclipse offers with its workspaces: On start of the program, it asks for a workspace and, if one is existant, restores the previous look and feel.</p> <p>How do you achieve something similar? If you use one of the many workspace/project-hooks, which hook do you prefer and why?</p>enThu, 20 May 2010 11:39:48 -0400Answer by Jazzhttp://linuxexchange.org/questions/642/best-emacs-workspace-solution/673<p>For the time being, I ended up with <a href="http://www.gentei.org/~yuuji/software/revive.el" rel="nofollow">revive.el</a>.</p> <p>A short description:<br/> Revive.el saves current editing status including the window splitting configuration, which can't be recovered by 'desktop.el' nor by 'saveconf.el', into a file and reconstructs that status correctly.</p> <p>In other words, it recovers all your buffers in the windows you left them.</p> <p>To get revive.el running, just copy those lines into your <em>.emacs</em> file:</p> <pre><code>(add-to-list 'load-path "~/EmacsEL/") ;;The path where you store your *.el files (load "revive") (autoload 'save-current-configuration "revive" "Save status" t) (autoload 'resume "revive" "Resume Emacs" t) (autoload 'wipe "revive" "Wipe Emacs" t) ;;Keyboard shortcuts (define-key ctl-x-map "S" 'save-current-configuration) (define-key ctl-x-map "F" 'resume) (define-key ctl-x-map "K" 'wipe) </code></pre> <p>After "installing", you can use the following keyboard shortcuts:<br/> To save your configuration: <strong>C-u C-x S</strong><br/> To load the configuration: <strong>C-u C-x F</strong></p> <p>You can also specify a buffer number after C-u (e.g.: C-u 2 C-x S), to store your configuration in a certain buffer.</p> <p>Still, let me know if you found something better! :)</p>JazzThu, 20 May 2010 11:39:48 -0400http://linuxexchange.org/questions/642/best-emacs-workspace-solution/673Answer by Johnathan Lankehttp://linuxexchange.org/questions/642/best-emacs-workspace-solution/672<p>I haven't tried any of these out myself (I probably will after posting this), but I found a ton of results on emacswiki.</p> <p><a href="http://www.emacswiki.org/emacs/WindowsAndRegisters" rel="nofollow">http://www.emacswiki.org/emacs/WindowsAndRegisters</a></p> <p><a href="http://www.emacswiki.org/emacs/TaskMode" rel="nofollow">http://www.emacswiki.org/emacs/TaskMode</a></p> <p><a href="http://www.emacswiki.org/emacs/LayoutRestore" rel="nofollow">http://www.emacswiki.org/emacs/LayoutRestore</a></p> <p><a href="http://www.emacswiki.org/emacs/WorkSpaces" rel="nofollow">http://www.emacswiki.org/emacs/WorkSpaces</a></p> <p>Happy Hacking (-:</p>Johnathan LankeThu, 20 May 2010 01:10:21 -0400http://linuxexchange.org/questions/642/best-emacs-workspace-solution/672