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

[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" <address@hidden> 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




reply via email to

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