Click to See Complete Forum and Search --> : Emacs question
gmarena
10-17-2003, 04:48 PM
I have xemacs version 21.4 that came with Red Hat Linux 9. I edit a lot of files with an extension of ".e" for use with one of the hardware engineering tools that I use. Unfortunately, xemacs keeps thinking these are Eiffel source files.
I looked up Eiffel on the web and, after reading about its purpose, realize I have no use for it. Is there any way I can stop emacs from thinking these files are Eiffel source files and just load them in "Fundamental" mode?
kshim5
10-17-2003, 05:53 PM
found this on emacs website dont know if it will help but here it is and here is the link
http://www.gnu.org/software/emacs/emacs-faq.text
this this text can be found in section 5.8 of the above link
5.8 How do I make Emacs use a certain major mode for certain files?
================================================== =================
If you want to use a certain mode FOO for all files whose names end
with the extension `.BAR', this will do it for you:
(setq auto-mode-alist (cons '("\\.BAR\\'" . FOO-mode) auto-mode-alist))
Otherwise put this somewhere in the first line of any file you want
to edit in the mode FOO (in the second line, if the first line begins
with `#!'):
-*- FOO -*-
Beginning with Emacs 19, the variable `interpreter-mode-alist'
specifies which mode to use when loading a shell script. (Emacs
determines which interpreter you're using by examining the first line of
the script.) This feature only applies when the file name doesn't
indicate which mode to use. Use `C-h v' (or `M-x describe-variable')
on `interpreter-mode-alist' to learn more.