From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: luca.pamparana@gmail.com Newsgroups: gmane.emacs.help Subject: get emacs to open files in c++ mode Date: Sun, 17 May 2009 13:26:42 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1242592860 6546 80.91.229.12 (17 May 2009 20:41:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 17 May 2009 20:41:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun May 17 22:40:53 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M5nA7-0005lI-BZ for geh-help-gnu-emacs@m.gmane.org; Sun, 17 May 2009 22:40:47 +0200 Original-Received: from localhost ([127.0.0.1]:51401 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M5nA6-00016H-Ry for geh-help-gnu-emacs@m.gmane.org; Sun, 17 May 2009 16:40:46 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2.glorb.com!postnews.google.com!g19g2000vbi.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 10 Original-NNTP-Posting-Host: 82.113.106.137 Original-X-Trace: posting.google.com 1242592002 9283 127.0.0.1 (17 May 2009 20:26:42 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sun, 17 May 2009 20:26:42 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: g19g2000vbi.googlegroups.com; posting-host=82.113.106.137; posting-account=D3FzDwoAAABdMDXitkUrPM9nBOvcbWaj User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.10) Gecko/2009042316 Firefox/3.0.10,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:169262 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:64516 Archived-At: Hello all, I have my emacs setup so that the default mode is the c++ mode. However, whenever I open a header file (.h) it opens it in C mode. How can I set up my .emacs file so that the header files would open in c++ mode as well. Many thanks, Luca