help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: can shell mode keep a log?


From: James Thomas
Subject: Re: can shell mode keep a log?
Date: Sat, 10 Sep 2022 10:17:07 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1.90 (gnu/linux)

Samuel Wales wrote:

> i need ti to be automatic, for the entire shell session, for all
> comand including prompts,  sort of like typescrpt ut that would likely
> have issues i am unware of such as commands outputtig to termianl or
> osehting.

You can enable auto-save-mode in the shell buffer. Make sure to read the
manual about the options to control its application.

> soign write-file is good for manual saves and i should remember it
> morel  although i think that changes the visited filename or so.  but
> it is not the automatic solution i am looking or.  i want a log of the
> session.

Once you use write-file, from then on, auto-save-mode is enabled in it
by default.

> iow a complete history o the shell sessions in my shell buffers, saved
> continuously or continually to files efficiently.

You can probably use shell-mode-hook to do one of the above in all such
buffers.

--



reply via email to

[Prev in Thread] Current Thread [Next in Thread]