all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Hansen <david.hansen@gmx.net>
To: help-gnu-emacs@gnu.org
Subject: Re: How to complete \] when I input \[ .
Date: Sat, 16 Aug 2008 17:46:07 +0200	[thread overview]
Message-ID: <874p5lklog.fsf@localhorst.mine.nu> (raw)
In-Reply-To: ffe0539f0808160700j1b815479kb09df09688fa7e2c@mail.gmail.com

On Sat, 16 Aug 2008 22:00:35 +0800 xiaopeng hu wrote:

> I mean \[ \].  thanks
>

(defun dh-escaped-bracket-pair ()
  (interactive)
  (if (eq ?\\ (char-before))
      (progn
        (insert "[")
        (save-excursion
          (insert "\\]")))
    (self-insert-command 1)))


(global-set-key (kbd "[") #'dh-escaped-bracket-pair)





  parent reply	other threads:[~2008-08-16 15:46 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 [this message]
     [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

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=874p5lklog.fsf@localhorst.mine.nu \
    --to=david.hansen@gmx.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.