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

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

Re: Mode line question from an idiot.


From: tomas
Subject: Re: Mode line question from an idiot.
Date: Tue, 26 Mar 2024 06:55:31 +0100

On Fri, Mar 22, 2024 at 08:56:37AM -0500, Robert Boyer wrote:
> Could some kind soul give me a line like the following, but one that
> includes 'auto-revert tail' and 'display-line'?
> 
>  ;;; -*- Mode: auto-revert -*-

Ah, this is not what usually is called the "mode line". The
mode line is that line outside your text which indicates
which mode the buffer you see is currently "in" (I'm saying
that because I was first misled when I read your subject
line).

Now to your problem: you set a major mode for a file in the
above way. That's because a major mode is more closely related
to the kind of file.

But auto-revert mode is a minor mode. This one is more related to
how you, the user, do things. You might set it with

  ;;; -*- eval: (auto-revert-mode 1) -*-

(before that you may set a major mode). But it is recommended
against, since you'd force other users of your file to adopt
your customs :-)

See chapter 25 "Major and Minor Modes" of the fine manual,
especially 25.3 "Choosing File Modes" for all the gory detail.

Cheers
-- 
t

Attachment: signature.asc
Description: PGP signature


reply via email to

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