unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Phillip Lord <phillip.lord@newcastle.ac.uk>
Subject: Re: Forcing a mode
Date: Thu, 31 Aug 2006 16:27:26 +0100	[thread overview]
Message-ID: <ufyfd7wo1.fsf@newcastle.ac.uk> (raw)
In-Reply-To: mailman.6088.1157036963.9609.help-gnu-emacs@gnu.org

>>>>> "AB" == Aaron Bingham <bingham@cenix-bioscience.com> writes:

  AB> CloudStrife wrote:

  >> I have some tcl files that donot have .tcl extension in file
  >> name. So when i open them in emacs the tcl mode is not turned
  >> on. can i enforce this onto the file.
  >> 
  AB> Hi Cloud,

  AB> I don't know quite what you mean by "enforce this onto a file".
  AB> Do you mean you want to manually set the mode after you open the
  AB> file, or do you want to tell Emacs to permanently treat the file
  AB> as Tcl?

  AB> If the former, simply use M-x tcl-mode.


I think he wants this to happen automatically. 

You can do this with file variables. Sticking


;; -*- mode: tcl -*-  

as the first line of the file should work. 

Or 

;; Local Variables: ***
;; mode: tcl ***

at the end should work. You can replace ";;" with what ever tcl uses
as a comment. 

Phil

  parent reply	other threads:[~2006-08-31 15:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-31 13:40 Forcing a mode CloudStrife
2006-08-31 15:09 ` Aaron Bingham
2006-08-31 21:33 ` Colin S. Miller
     [not found] ` <mailman.6088.1157036963.9609.help-gnu-emacs@gnu.org>
2006-08-31 15:27   ` Phillip Lord [this message]
2006-08-31 21:11     ` Will Parsons
2006-09-01  0:58       ` Barry Margolin
2006-09-01 13:43       ` rgb
2006-09-01  5:39   ` CloudStrife

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=ufyfd7wo1.fsf@newcastle.ac.uk \
    --to=phillip.lord@newcastle.ac.uk \
    /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).