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

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

Re: programming file-extensions in .emacs


From: Jason Rumney
Subject: Re: programming file-extensions in .emacs
Date: Wed, 27 Feb 2008 08:20:34 -0800 (PST)
User-agent: G2/1.0

On 27 Feb, 14:17, efrem <address@hidden> 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.


reply via email to

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