[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: efficient editing question (hot key , ccmode)
From: |
Dieter Wilhelm |
Subject: |
Re: efficient editing question (hot key , ccmode) |
Date: |
Sun, 19 Nov 2006 10:36:38 +0100 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
"Ronald" <followait@163.com> writes:
> If I press ``M-(", there will be a space before `(' ,
> how to inhibit it?
(setq parens-require-spaces nil) ;no space before parens with M-(
> And how to let ``{}" work in the same way?
Unfortunately it is not working out of the box analogous because M-{
is already taken by forward-paragraph. Or is there some hack in
cc-mode, please let me know.
At least I got M-" running without interfering something:
(global-set-key [?\M-\"] 'insert-pair) ;insert pair of quotes (`"'), see
lisp.el
>
> When the caret is in the middle of a line,
what do you mean exactly by caret? (Sorry, not a native speaker
myself.)
--
Best wishes
H. Dieter Wilhelm
Darmstadt, Germany