help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting editing mode in file?


From: Eli Zaretskii
Subject: Re: Setting editing mode in file?
Date: 27 Nov 2003 08:37:29 +0200

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]