all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chat <chatter70.xspam@xspam.sbcglobal.net>
To: help-gnu-emacs@gnu.org
Subject: Re: How to complete \] when I input \[ .
Date: Sat, 16 Aug 2008 08:56:29 -0700	[thread overview]
Message-ID: <u4p5leyxe.fsf@ganesha.sbcglobal.net> (raw)
In-Reply-To: mailman.16899.1218895239.18990.help-gnu-emacs@gnu.org

"xiaopeng hu" <huxiaopengstat@gmail.com> writes:

> I mean \[ \].  thanks2008/8/16 David Hansen <span dir="ltr"><mailto:david.hansen@gmx.net></span>
> On Sat, 16 Aug 2008 21:09:46 +0800 xiaopeng hu wrote:
>
>> When I input \[ , how to complete \] and put point at middle?
>>
>
> Should work:
>
> (global-set-key (kbd "[") #&#39;insert-pair)
>
> David

I find this kind of behavior irritating when editing existing code.
Have you looked at expand package? Seems to do it only when there is nothing
else on the line following point.


      parent reply	other threads:[~2008-08-16 15:56 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-16 13:09 How to complete \] when I input \[ xiaopeng hu
2008-08-16 13:15 ` David Hansen
2008-08-16 14:00   ` xiaopeng hu
2008-08-16 14:55     ` Thierry Volpiatto
2008-08-16 15:46     ` David Hansen
     [not found]     ` <mailman.16901.1218898721.18990.help-gnu-emacs@gnu.org>
2008-09-15  2:38       ` David Combs
2008-09-15  5:57         ` Thierry Volpiatto
     [not found]   ` <mailman.16899.1218895239.18990.help-gnu-emacs@gnu.org>
2008-08-16 15:56     ` Chat [this message]

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=u4p5leyxe.fsf@ganesha.sbcglobal.net \
    --to=chatter70.xspam@xspam.sbcglobal.net \
    --cc=help-gnu-emacs@gnu.org \
    /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.