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

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

Re: How to rescan for mode comment in new buffer?


From: Edward O'Connor
Subject: Re: How to rescan for mode comment in new buffer?
Date: Fri, 31 Jul 2009 13:07:10 -0700

> If I've created a new empty file and pasted in the header that will make
> the shell and Emacs recognize it as a Perl script, what's the easiest
> way to "refresh" it so that Emacs recognizes that it has to go into Perl
> mode?  I could just manually run "perl-mode", but I'd rather a cleaner
> way to do it.  Saving, killing the buffer and reloading it seems
> excessive also.

M-x normal-mode RET


HTH. HAND.
Ted




reply via email to

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