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

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

Re: Modifying auto-mode-alist in .emacs


From: Kin Cho
Subject: Re: Modifying auto-mode-alist in .emacs
Date: 15 Feb 2004 17:04:15 -0800
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

(add-to-list 'auto-mode-alist '("\\.h\\'"    . c++-mode))

-kin

exits funnel <exitsfunnel@yahoo.com> writes:

> Hello,
> 
> I've made some customizations to c++ mode which work
> pretty well.  Unfortunately when I visit a header file
> with the extension '.h', the file is opened in c-mode.
>  I'm trying to figure out what I need to add to my
> .emacs file to get emacs to open these header files in
> c++ mode.  I've been poking around the info pages and
> I've read about auto-mode-alist but I can't figure out
> how to make the appropriate change to this variable in
> my .emacs file.  If someone could help me with this
> I'd really appreciate it.  Thanks in advance.
> 
> -exits
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Finance: Get your refund fast by filing online.
> http://taxes.yahoo.com/filing.html


reply via email to

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