unofficial mirror of
 help / color / mirror / Atom feed
From: <>
To: Robert Boyer <>
Subject: Re: Mode line question from an idiot.
Date: Tue, 26 Mar 2024 06:55:31 +0100	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

[-- Attachment #1: Type: text/plain, Size: 1076 bytes --]

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

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.


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

      reply	other threads:[~2024-03-26  5:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-22 13:56 Mode line question from an idiot Robert Boyer
2024-03-26  5:55 ` tomas [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).