From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jason Rumney Newsgroups: gmane.emacs.help Subject: Re: programming file-extensions in .emacs Date: Wed, 27 Feb 2008 08:20:34 -0800 (PST) Organization: http://groups.google.com Message-ID: <6772c1fe-5321-41d6-9bba-74443a83b203@n58g2000hsf.googlegroups.com> References: <6d54fc34-7e67-4dd0-9c99-be7796283cdb@e25g2000prg.googlegroups.com> 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 1204130480 14472 80.91.229.12 (27 Feb 2008 16:41:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 Feb 2008 16:41:20 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 27 17:41:44 2008 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 1JUPLR-0002Jw-1V for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Feb 2008 17:41:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUPKu-0007rL-Pw for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Feb 2008 11:40:52 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!n58g2000hsf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 13 Original-NNTP-Posting-Host: 83.67.23.108 Original-X-Trace: posting.google.com 1204129234 28941 127.0.0.1 (27 Feb 2008 16:20:34 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 27 Feb 2008 16:20:34 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: n58g2000hsf.googlegroups.com; posting-host=83.67.23.108; posting-account=pYxWjwkAAACsHSUNDoi5N05LVCTP7PVM User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12,gzip(gfe),gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.help:156545 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:51917 Archived-At: On 27 Feb, 14:17, efrem wrote: > I'd like to change the .emacs file in order to > make some key-setting for the cases of xxxx.f and xxxx.cc files. ... > What is the way to change this code it runs properly without any > typings like "M-x mykeys": the .emacs must do these settings itself? (add-hook 'fortran-mode-hook 'mykeys) (add-hook 'c++-mode-hook 'mykeys) The latter could be replaced with c-mode-common-hook if you want to extend this to all C like programming languages.