From: Katsumi Yamaoka <yamaoka@jpl.org>
Subject: Re: insert pair doesn't work with *, $ and %
Date: Thu, 07 Dec 2006 12:47:54 +0900 [thread overview]
Message-ID: <b4m8xhkpdsl.fsf@jpl.org> (raw)
In-Reply-To: mailman.1624.1165460982.2155.help-gnu-emacs@gnu.org
>>>>> In <mailman.1624.1165460982.2155.help-gnu-emacs@gnu.org>
>>>>> Dieter Wilhelm wrote:
> For a special mode I'd like to have key bindings duplicating various
> characters like e. g.
> (global-set-key "\C-c{" 'insert-pair)
> this does work as expected (I'm getting a pair of {} and the point is
> within the pair). But I can't get the analogous with *, $ and % to
> run, I'm just getting one of these characters back and not a pair.
> What am I missing here?
You need to add to the `insert-pair-alist' variable the pairs
corresponding to those keys. For example:
(add-to-list 'insert-pair-alist '(?* ?*))
(add-to-list 'insert-pair-alist '(?$ ?$))
(add-to-list 'insert-pair-alist '(?% ?%))
next parent reply other threads:[~2006-12-07 3:47 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.1624.1165460982.2155.help-gnu-emacs@gnu.org>
2006-12-07 3:47 ` Katsumi Yamaoka [this message]
2006-12-07 3:09 insert pair doesn't work with *, $ and % Dieter Wilhelm
2006-12-07 3:32 ` Andreas Seltenreich
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=b4m8xhkpdsl.fsf@jpl.org \
--to=yamaoka@jpl.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.