all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: efficient editing question (hot key , ccmode)
Date: Tue, 21 Nov 2006 09:24:17 -0700	[thread overview]
Message-ID: <ejv991$hko$1@sea.gmane.org> (raw)
In-Reply-To: <ejp1n6$iai$1@news.yaako.com>

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

  parent reply	other threads:[~2006-11-21 16:24 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 [this message]
     [not found] ` <mailman.951.1164126341.2155.help-gnu-emacs@gnu.org>
2006-11-22  4:06   ` Ronald
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='ejv991$hko$1@sea.gmane.org' \
    --to=ihs_4664@yahoo.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.