home *** CD-ROM | disk | FTP | other *** search
- >>>>> On Mon, 3 May 1993 09:37:48 -0500,
- >>>>> elm113!Mike.Battaglia@uunet.uu.net (Mike Battaglia) said:
-
- Battaglia> Adriaan Joubert wrote about "How does lemacs determine what mode to use?" on 3 May 1993
-
- Joubert> Hi,
-
- Joubert> As the subject header says: How does lemacs determine what mode to
- Joubert> use?
-
- Joubert> I would like lemacs to go into Fortran mode for files ending on .F,
- Joubert> into Fortran 90 mode for files ending in .f90 and into Perl mode
- Joubert> for files ending in .prl. I can't figure out how Emacs decides
- Joubert> which mode to use though.
-
-
- Battaglia> Look at the variable 'auto-mode-alist'
-
- To be more precise:
-
- (defvar auto-mode-alist nil)
- (setq auto-mode-alist
- (append (list (cons "\\.F$" 'fortran-mode)
- (cons "\\.f90$" 'fortran-90-mode)
- (cons "\\.prl$" 'perl-mode))
- auto-mode-alist))
-
-
- You still need to substitute the correct commands for fortran-mode and
- fortran-90-mode, I don't know their names...
-
- .kai
-
- --
- Life is hard and then you die.
-
-