Closed Andre0991 closed 8 years ago
Regarding your comment about restoring Emacs state: Did you give desktop-mode a try? It is built into Emacs and does even support restoring Eyebrowse window configs.
I've heard about it.
To be honest, I like restarting Emacs and its side effect of closing all dozens of buffers that it had opened (although probably there's a package to close "inactive" buffers).
Maybe I should just change my workflow instead of trying to automatize eyebrowse
, I don know.
There is indeed a mode for that, midnight-mode. What I'm hinting at is that automating Emacs is difficult to get right. See ecukes for an example.
Nevertheless I do agree with you there that it's silly that the command doesn't expose the new name as its argument. You could work around it by manipulating the data structure eyebrowse is working with directly for the time being...
Another option I can imagine is teaching eyebrowse to open an initial set of workspaces, be it with or without names...
Sure, I'll do this for the time being, and modify the function later.
Fixed as of 0.6.8.
I would like to automate the creation of window configurations.
This is useful because I try to follow a routine and so, for example, everyday I study a bit of Emacs Lisp. When I do that, I create a specific window configuration: a scratch buffer, a
.org
buffer with my annotations and a the Emacs Lisp Manual.Of course, I don't want to create and resize the windows every time so I created a function that creates this specific window configuration:
Obviously, I wouldn't need this if I had Emacs open all the time, but sometimes I restart it to test some stuff and then everything is lost.
I created several functions like the above.
Now, what I would like to automate is the creation of
eyebrowse
window configurations and tag them when I started Emacs.Something like
Currently, this is not possible because
eyebrowse-rename-window-config
has to be called interactively.Additionally, it would be nice to have a kind of
eyebrowse-create-new-window-config
function that doesn't depend on any number. It would make it cleaner to adjust the function that creates all window configurations and it would be handy in creating new ones that I use just sporadically. For example, I could a function to create and tag a workspace that I use just on weekends. It would be then+1
workspace, wheren
is the number of workspaces before calling it.Thanks.