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: Kevin Rodgers
Subject: Re: efficient editing question (hot key , ccmode)
Date: Tue, 21 Nov 2006 09:24:17 -0700
User-agent: Thunderbird 1.5.0.8 (Windows/20061025)

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)

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

--
Kevin





reply via email to

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