From: "Ronald" <followait@163.com>
Subject: Re: efficient editing question (hot key , ccmode)
Date: Wed, 22 Nov 2006 12:06:57 +0800 [thread overview]
Message-ID: <ek0iei$eb3$1@news.yaako.com> (raw)
In-Reply-To: mailman.951.1164126341.2155.help-gnu-emacs@gnu.org
"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
>
>
>
next prev parent reply other threads:[~2006-11-22 4:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-19 7:39 efficient editing question (hot key , ccmode) Ronald
2006-11-19 9:36 ` Dieter Wilhelm
2006-11-20 21:50 ` Dieter Wilhelm
2006-11-21 16:24 ` Kevin Rodgers
[not found] ` <mailman.951.1164126341.2155.help-gnu-emacs@gnu.org>
2006-11-22 4:06 ` Ronald [this message]
2006-11-22 6:37 ` Dieter Wilhelm
2006-11-22 16:12 ` Kevin Rodgers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='ek0iei$eb3$1@news.yaako.com' \
--to=followait@163.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.