Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #261615

Re: automate resumption of session

From Charles Curley <charlescurley@charlescurley.com>
Newsgroups linux.debian.user
Subject Re: automate resumption of session
Date 2023-09-13 03:20 +0200
Message-ID <HdmHT-8Bim-1@gated-at.bofh.it> (permalink)
References <HdlLP-8AKt-3@gated-at.bofh.it>
Organization occasionally

Show all headers | View raw


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/

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

automate resumption of session "Russell L. Harris" <russell@rlharris.org> - 2023-09-13 02:20 +0200
  Re: automate resumption of session Larry Martell <larry.martell@gmail.com> - 2023-09-13 02:30 +0200
    Re: automate resumption of session "Russell L. Harris" <russell@rlharris.org> - 2023-09-13 02:40 +0200
      Re: automate resumption of session Stefan Monnier <monnier@iro.umontreal.ca> - 2023-09-13 04:50 +0200
        Re: automate resumption of session "Russell L. Harris" <russell@rlharris.org> - 2023-09-13 05:20 +0200
          Re: automate resumption of session Charles Curley <charlescurley@charlescurley.com> - 2023-09-13 06:20 +0200
  Re: automate resumption of session Charles Curley <charlescurley@charlescurley.com> - 2023-09-13 03:20 +0200
    Re: automate resumption of session "Russell L. Harris" <russell@rlharris.org> - 2023-09-13 03:30 +0200
  Re: automate resumption of session Manphiz <manphiz@gmail.com> - 2023-09-13 04:30 +0200
    Re: automate resumption of session Stefan Monnier <monnier@iro.umontreal.ca> - 2023-09-14 18:00 +0200
  Re: automate resumption of session Dieter Rohlfing <dr-erc@gmx.net> - 2023-09-13 11:10 +0200

csiph-web