Xref: utzoo gnu.emacs.help:1403 comp.emacs:10275 Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!magnus.ircc.ohio-state.edu!tut.cis.ohio-state.edu!unreplyable!garbage From: allen@NERD.SSC.GOV (Mike Allen) Newsgroups: gnu.emacs.help,comp.emacs Subject: Starting up in auto-fill mode? Message-ID: <9103081442.AA23995@life.ai.mit.edu> Date: 8 Mar 91 14:38:54 GMT References: <13176@darkstar.ucsc.edu> Sender: daemon@tut.cis.ohio-state.edu Reply-To: allen@sscvx1.ssc.gov Followup-To: gnu.emacs.help Organization: Gatewayed from the GNU Project mailing list help-gnu-emacs@prep.ai.mit.edu Lines: 30 >>>>> On 7 Mar 91 21:28:32 GMT, claude@jupiter.ucsc.edu (Claude Noshpitz) said: Claude> Emacs seems to look for a file extension to decide on what mode to use. Claude> What happens if there's no extension? Claude> I know, RTFM, but I don't really have the time to wade... Claude> Anyway, thanks for the help!!! emacs has at least two ways of deciding which mode to use: 1) by file extension, as in: (setq auto-mode-alist (cons '("\\.hxx$" . c++-mode) auto-mode-alist)) 2) by local variables in the file, as in: ;;; Local Variables: *** ;;; eval: (outline-mode) *** ;;; End: *** -Mike =============================================================================== Michael E. Allen Mail Stop 1046 SSC Laboratory 2550 Beckleymeade Ave. Dallas, TX 75237 (214)708-3031 al tadin et khaverkha 'ad shetagi'a limkomo -Ethics of the Fathers Do not judge your fellow man until you have come to his place.