![]() I might take it out to make the library do-one-thing-well, or I might add more project.el enhancements to it instead. I also threw in a project backend to recognize non-version controlled projects through the presence of a â.projectâ file in the path. h file, you're just limiting yourself by trying to bring a bad idea from IDE into Emacs. It works perfectly within a session, but it only restores files and directory windows across sessions (no shells, help buffers, etc). With a prefix argument C-u, it will open another window. At just a few defuns and a couple of hook functions, it really is much simpler than full fledged workspace management packages for Emacs. Normally this kind of customization would just live in init.el, but I decided to package it in case someoneâs looking for a similar feature. He then feels free to split either frame temporarily into multiple windows and restore to the single window, presumably with something like Ctrl + x 1, when heâs done. When I switch projects I switch window configurations too, opening files if needed: He prefers to let the OS handle the sizing and position of frames and configures a set of convenient keys to switch to Emacs and move between frames. In addition to the window configuration, project files saved by project-x are restored (as highlighted in ibuffer here.) Enhanced project switching Your browser does not support the video tag. You can switch between buffers with b.Resume a saved project state in a fresh Emacs process: bashrc file in your home directory, use emacs to create one and save it in your home. Project-x saves my project state (open files, buffers and window configuration) and restores them across Emacs sessions. This is especially so since all the ingredients to seamlessly switch projects are present in the Emacs API but havenât been put together.Ä«etween burly, bufler, persp-mode, projectile and various tab libraries Iâm sure this hole is covered, but Iâm happy with project.el and wanted something much simpler, so I whipped something up. Spinning up a new Emacs session (it happens) or switching between projects (using project.el) always annoyed me since Iâd have to reopen or redisplay the project files I was working on last, then recreate my preferred window configuration and so on. Somehow thereâs no clear way to bookmark and switch to (across Emacs sessions) a collection of files, buffers and windows together as a unit⦠or project. ![]() desktop-read is an all-or-nothing affair. ![]() ![]() But the window configurations vaporize when you shut down Emacs, and they donât handle unopened file buffers. Thereâs current-window-configuration (and its register variants) and desktop-save, and you can act on groups of buffers by every predicate imaginable in ibuffer. Just a short note for today, as the super-fast-latex post is still cooking:Ä®macs provides a few mechanisms to manage buffer/window state as a group. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |