From: Dan Hitt <dan.hitt@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Ignoring unknown mode `GNUmakefile-mode'
Date: Sun, 26 Jun 2016 14:05:28 -0700 [thread overview]
Message-ID: <CAOphizKOdwmKk=qWJN-Kc_mg7-t3vbJF9tUm5dKub-yzJCKezQ@mail.gmail.com> (raw)
I have a file whose name is not 'makefile', nor 'Makefile', nor 'GNUmakefile'.
If i visit it using emacs (v 24.5.1, xubuntu 16.04), the modeline
correctly indicates GNUmakefile.
But if i add
# -*- GNUmakefile -*-
at the top of the file, i get a message:
Ignoring unknown mode `GNUmakefile-mode'.
This makes me very uneasy, because i don't know how it is detecting
the mode, and if i mess up the file, it may no longer recognize it as
a GNUmakefile. Also, i don't know if other versions of emacs will be
able to recognize that it is a GNUmakefile.
Note that i can explicitly set the mode with a line like
# -*- Makefile -*-
That does not generate any warnings, but the mode line indicates
'Makefile' rather than 'GNUmakefile', which is not really correct
since it uses a bunch of GNUmakefile specific things.
So . . . is there some way i can instruct emacs, in the text of the
file, that i want it to be treated as a GNUmakefile?
TIA for any clues!
dan
PS: i googled for the line in the subject, and was very surprised not
to get a single match.
next reply other threads:[~2016-06-26 21:05 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-26 21:05 Dan Hitt [this message]
[not found] <mailman.164.1467017573.26859.help-gnu-emacs@gnu.org>
2016-06-27 9:34 ` Ignoring unknown mode `GNUmakefile-mode' Alain Ketterlin
2016-06-27 9:56 ` Joost Kremers
2016-06-27 14:48 ` Dan Hitt
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAOphizKOdwmKk=qWJN-Kc_mg7-t3vbJF9tUm5dKub-yzJCKezQ@mail.gmail.com' \
--to=dan.hitt@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/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.
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).