From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Newsgroups: gmane.emacs.help Subject: Re: Mode line question from an idiot. Date: Tue, 26 Mar 2024 06:55:31 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="bwzrWyvtKDy8fTlO" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14294"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Robert Boyer Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 26 06:56:26 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1roznN-0003V4-GO for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 26 Mar 2024 06:56:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rozmd-00034n-Lc; Tue, 26 Mar 2024 01:55:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rozmb-00034b-FP for help-gnu-emacs@gnu.org; Tue, 26 Mar 2024 01:55:37 -0400 Original-Received: from mail.tuxteam.de ([5.199.139.25]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rozmZ-0003nx-Ep for help-gnu-emacs@gnu.org; Tue, 26 Mar 2024 01:55:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=From:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=UKkChALSvogrGC0mBgcfqO8aZgJSAYQlv03+/amrjW0=; b=BGEBIprC4qVc1I0M5sQ9nTsrgP oY7kuS+UVxI5fo6/x8EYUSIQsDq5KzuXTK1q2LL8zNDUxnxipP5ToaPWQc05zoFacFNrVB3mKpS0A Y5ByCyFuRxdDD66A7PXMJVzs3g6ItAQExpHLiUFe2gsOvXYUub/Htq0QLLt5j2a87kF4MFkEJRW9M waYrs3rJizLwo/RjObbUnDJ9QcgxNfGzGItnM215u2ydNoey7GsZ7DfvJxoR6RsPQIDYVV8ZJfWcv Abk2bX/VPQ4K8SWBldUP7cE69w8IdBm1yIAUnSlnn/aCXSIw1Afs3/AuJTjjqXDnGm4JPhedWNyyV eaaL4PMQ==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.94.2) (envelope-from ) id 1rozmV-0007JH-Jf; Tue, 26 Mar 2024 06:55:31 +0100 Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:146172 Archived-At: --bwzrWyvtKDy8fTlO Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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'? >=20 > ;;; -*- 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 --=20 t --bwzrWyvtKDy8fTlO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRp53liolZD6iXhAoIFyCz1etHaRgUCZgJjTAAKCRAFyCz1etHa RlerAJ9JV/5DxM3KMfR5DNt6GYRjs0O2AgCbBhNhMq4uAHvAqNVzZZX3p4sSBdo= =2jOu -----END PGP SIGNATURE----- --bwzrWyvtKDy8fTlO--