[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: insert pair doesn't work with *, $ and %

From: Katsumi Yamaoka
Subject: Re: insert pair doesn't work with *, $ and %
Date: Thu, 07 Dec 2006 12:47:54 +0900
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.91 (gnu/linux)

>>>>> In <address@hidden>
>>>>>   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 '(?% ?%))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]