From: Stephen Berman via "Bug reports for GNU Emacs, the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
To: Robert Boyer <robertstephenboyer@gmail.com>
Cc: 69934@debbugs.gnu.org
Subject: bug#69934:
Date: Fri, 22 Mar 2024 09:18:23 +0100 [thread overview]
Message-ID: <874jcysmr4.fsf@gmx.net> (raw)
In-Reply-To: <CAP9n0TPNkQEjKGxGBQ9k1p8oYYKAOQGxWDcDuPjWX7DxtWWTBg@mail.gmail.com> (Robert Boyer's message of "Thu, 21 Mar 2024 20:17:09 -0500")
On Thu, 21 Mar 2024 20:17:09 -0500 Robert Boyer <robertstephenboyer@gmail.com> 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 -*-
The Emacs manual says (evaluate this sexp if you have the Info file
installed: (info "(emacs) Specifying File Variables")):
Do not use the ‘mode’ keyword for minor modes. To enable or disable
a minor mode in a local variables list, use the ‘eval’ keyword with a
Lisp expression that runs the mode command (*note Minor Modes::). For
example, the following local variables list enables ElDoc mode (*note
Programming Language Doc::) by calling ‘eldoc-mode’ with no argument
(calling it with an argument of 1 would do the same), and disables Font
Lock mode (*note Font Lock::) by calling ‘font-lock-mode’ with an
argument of −1.
;; Local Variables:
;; eval: (eldoc-mode)
;; eval: (font-lock-mode -1)
;; End:
Note, however, that it is often a mistake to specify minor modes this
way. Minor modes represent individual user preferences, and it may be
inappropriate to impose your preferences on another user who might edit
the file. If you wish to automatically enable or disable a minor mode
in a situation-dependent way, it is often better to do it in a major
mode hook (*note Hooks::).
So you could use this:
;; -*- eval: (auto-revert-mode); eval: (auto-revert-tail-mode); eval: (display-line-numbers-mode) -*-
> Thanks,
>
> Bob
Steve Berman
next prev parent reply other threads:[~2024-03-22 8:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-22 1:17 bug#69934: Robert Boyer
2024-03-22 7:22 ` bug#69934: Eli Zaretskii
2024-03-22 14:01 ` bug#69934: Robert Boyer
2024-06-30 5:57 ` bug#69934: nil Stefan Kangas
2024-03-22 8:18 ` Stephen Berman via Bug reports for GNU Emacs, the Swiss army knife of text editors [this message]
2024-03-22 14:17 ` bug#69934: Robert Boyer
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:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874jcysmr4.fsf@gmx.net \
--to=bug-gnu-emacs@gnu.org \
--cc=69934@debbugs.gnu.org \
--cc=robertstephenboyer@gmail.com \
--cc=stephen.berman@gmx.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* 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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.