unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Mode line question from an idiot.
@ 2024-03-22 13:56 Robert Boyer
  2024-03-26  5:55 ` tomas
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Boyer @ 2024-03-22 13:56 UTC (permalink / raw)
  To: help-gnu-emacs

Could some kind soul give me a line like the following, but one that
includes 'auto-revert tail' and 'display-line'?

 ;;; -*- Mode: auto-revert -*-

Bob


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Mode line question from an idiot.
  2024-03-22 13:56 Mode line question from an idiot Robert Boyer
@ 2024-03-26  5:55 ` tomas
  0 siblings, 0 replies; 2+ messages in thread
From: tomas @ 2024-03-26  5:55 UTC (permalink / raw)
  To: Robert Boyer; +Cc: help-gnu-emacs

[-- 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
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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-03-26  5:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-22 13:56 Mode line question from an idiot Robert Boyer
2024-03-26  5:55 ` tomas

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).