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

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

Re: c-mode-addons


From: Thorsten Bonow
Subject: Re: c-mode-addons
Date: Mon, 26 Apr 2004 11:16:23 +0200
User-agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Security Through Obscurity, linux)

>>>>> "axa" == axa  <address@hidden> writes:

    axa>    (define-key c-mode-map "(" 'c-electric-parenthesis-open) (define-key
    axa>    c++-mode-map "(" 'c-electric-parenthesis-open)

Hi,

I'm using `c-mode-base-map' and this works for me.

After byte-compiling and putting the library into my load-path, I have the
following in my init files for GNU Emacs and XEmacs:

;; ** C mode addons
(load "c-mode-addons")
(add-hook 'c-mode-common-hook
          (function (lambda ()
                      ;; (define-key c-mode-base-map "(" 
'c-electric-parenthesis-open)
                      (define-key c-mode-base-map "\M-s" 'c-synopsis-at-point)
                      (define-key c-mode-base-map "\C-ce" 'c-eval-enum))))

The reason I'm not using `c-electric-parenthesis-open' is that this overwrites
the original binding of "(" to `c-electric-paren' in c-mode. If I'm getting
around to it, I will try to fix this.

By the way, where do you got the package? I googled it from the original posting
to gnu.emacs.sources, but found all links to a package download dead...

Toto

-- 
Contact information and PGP key at
http://www-users.rwth-aachen.de/thorsten.bonow

They say God created whiskey to keep the Irish from taking over the
world.

Friedman, Kinky (1993), Greenwich Killing Time. New York (Wings
Books), 216


reply via email to

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