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: Wed, 22 Nov 2006 07:37:49 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

"Ronald" <address@hidden> writes:

> "Kevin Rodgers" <address@hidden> 
> ??????:address@hidden
>> 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.

It's a standard Emacs (22) function.

>
>>> 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.

When it's not taken already, why not?

>>
>> -- 
>> Kevin
>>
>>
>> 

-- 
    Best wishes

    H. Dieter Wilhelm
    Darmstadt, Germany




reply via email to

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