unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Ignoring unknown mode `GNUmakefile-mode'
@ 2016-06-26 21:05 Dan Hitt
  0 siblings, 0 replies; 4+ messages in thread
From: Dan Hitt @ 2016-06-26 21:05 UTC (permalink / raw)
  To: help-gnu-emacs

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.



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

end of thread, other threads:[~2016-06-27 14:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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
2016-06-26 21:05 Dan Hitt

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