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: Ronald
Subject: Re: efficient editing question (hot key , ccmode)
Date: Wed, 22 Nov 2006 12:06:57 +0800

"Kevin Rodgers" <ihs_4664@yahoo.com> 
??????:mailman.951.1164126341.2155.help-gnu-emacs@gnu.org...
> Ronald wrote:
>> If I press ``M-(", there will be a space before `(' ,
>> how to inhibit it?
>
> ,----[ C-h k M-( ]
> | M-( runs the command insert-parentheses
> |    which is an interactive compiled Lisp function in `lisp.el'.
> | It is bound to M-(.
> | (insert-parentheses &optional arg)
> |
> | Enclose following arg sexps in parentheses.
> | Leave point after open-paren.
> | A negative arg encloses the preceding arg sexps instead.
> | No argument is equivalent to zero: just insert `()' and leave point 
> between.
> | If `parens-require-spaces' is non-nil, this command also inserts a space
> | before and after, depending on the surrounding characters.
> | If region is active, insert enclosing characters at region boundaries.
> |
> | [back]
> `----
>
>> And how to let ``{}" work in the same way?
>
> (global-set-key "\M-{" 'insert-pair)
>
Maybe I should get the function,``insert-pair",first.

>> When the caret is in the middle of a line,
>> how to new a line and move the caret there automatically?
>
> If by caret you mean point: C-e RET
Maybe I should define something like C-; , who has less key strokes.
>
> -- 
> Kevin
>
>
> 




reply via email to

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