From: Thorsten Bonow <thorsten.bonow@post.rwth-aachen.de>
Subject: Re: c-mode-addons
Date: Mon, 26 Apr 2004 11:16:23 +0200 [thread overview]
Message-ID: <874qr7m74o.fsf@herrrossi.mmweg.rwth-aachen.de> (raw)
In-Reply-To: mailman.1578.1082934830.1061.help-gnu-emacs@gnu.org
>>>>> "axa" == axa <axa@sendmail.ru> 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
prev parent reply other threads:[~2004-04-26 9:16 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.58.0404260032420.1590@darkstar.example.net>
[not found] ` <Pine.LNX.4.58.0404260106300.1590@darkstar.example.net>
2004-04-25 23:12 ` c-mode-addons axa
[not found] ` <mailman.1578.1082934830.1061.help-gnu-emacs@gnu.org>
2004-04-26 9:16 ` Thorsten Bonow [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=874qr7m74o.fsf@herrrossi.mmweg.rwth-aachen.de \
--to=thorsten.bonow@post.rwth-aachen.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.