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

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

Re: c++ and c common mode


From: David Hansen
Subject: Re: c++ and c common mode
Date: Wed, 13 Dec 2006 18:57:45 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.91 (gnu/linux)

On Wed, 13 Dec 2006 14:52:31 +0100 Hadron Quark wrote:

> The one line I *did* have to duplicate was the define-key to add to both
> keyboard maps:
>
>
> ,----
> |   (let ((dl '(
> |           ([f1] . jump-man-page)
> |           ([backtab] . semantic-ia-complete-symbol)
> |           ([f5] . find-tag-noconfirm)
> |           ([f6] . find-tag-repeat)
> |           ([f7] . pop-tag-mark)
> |           ([f2] . gdb-restore-windows)
> |           ([f10] . compile)
> |           ([f11] . next-error)
> |           ([f12] . gdba))))
> |     (dolist (i dl)
> |       (define-key c-mode-map (car i) (cdr i))
> |       (define-key c++-mode-map (car i) (cdr i))
> |       ))
> `----
>
> is there a better way? Some common "subset" for "c like" files?

Use `c-mode-base-map' or if needed `local-set-key'.

David





reply via email to

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