unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Re: Setting editing mode in file?
       [not found] <bq3ti7$gr1$0@pita.alt.net>
@ 2003-11-27  6:37 ` Eli Zaretskii
  0 siblings, 0 replies; only message in thread
From: Eli Zaretskii @ 2003-11-27  6:37 UTC (permalink / raw)


> From: Ignoramus14044 <ignoramus14044@NOSPAM.14044.invalid>
> Newsgroups: gnu.emacs.help
> Date: 27 Nov 2003 04:11:51 GMT
> 
> A long time, I saw snippets like this (sort of)
> 
> // -+-*- C++ -*-+-
> 
> or some such thing. This would force the editing mode to be the C++
> mode. Any idea how I can actually do it?

Yes, you need to put

// -*- C++ -*-

At the beginning of the file (more accurately, on the first non-blank
line of the file).

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-11-27  6:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <bq3ti7$gr1$0@pita.alt.net>
2003-11-27  6:37 ` Setting editing mode in file? Eli Zaretskii

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