[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: automate resumption of session



On Wed, 13 Sep 2023 00:14:53 +0000
"Russell L. Harris" <russell@rlharris.org> wrote:

> For each article, I keep open
> an instance of emacs, a terminal window from which I execute latex and
> xdvi, and the xdvi window.

Don't do that. Open one instance of emacs, then use multiple frames,
one (or more) on each workspace. C-x 5 2. C-x 5 0 to close one. Even
today emacs is a resource hog. You can then open all the files you
want, in multiple frames or multiple windows within each frame. Also, I
suspect that the next step won't work with multiple instances of emacs,
without some serious and quite unnecessary finagling.

Now, to preserve all that across sessions, use emacs' desktop mode.
https://www.gnu.org/software/emacs/manual/html_node/emacs/Saving-Emacs-Sessions.html,
https://www.emacswiki.org/emacs?action=browse;oldid=DeskTop;id=Desktop
You may have to manually save emacs' desktop once, but after that emacs
will save the desktop for you on exit, and restore it on launch.

Those two changes should get rid of a lot of your morning routine.

For the rest, look at XFCE's ability to save sessions. Applications ->
Settings -> Sessions and Startup. For example, preserving XFCE
terminals includes preserving the working directory.

Also recall that Bash (and most other shells) reserve a history of
previously used commands. Instead of typing, e.g.,

vlc ~/Music/playlist.m3u &

I find it much simpler to type

^Rvlc

or some such.
-- 
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/


Reply to: