help-gnu-emacs
[Top][All Lists]
Advanced

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

Skeleton angle brackets '<' and '>'


From: B.V. Raghav
Subject: Skeleton angle brackets '<' and '>'
Date: Wed, 06 Jan 2016 02:42:53 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Hi,

There are smart tools for the purpose, but I prefer to stick to the old
school for auto pairing.

Electric Pair mode and Skeleton pair, like this:
(electric-pair-mode t)
(setq skeleton-pair t)

While in the c++ mode, (hopefully true for all c-modes)
I am able to successfully pair (), {}, and [], with a single key press,
i.e. of the preceding character of the pair.

I also want to pair the angle brackets, i.e. `<' and `>' characters.

The documentation for the variable sekeleton-pair-alist says,

[...]
Each alist element, which looks like (ELEMENT ...), is passed to
`skeleton-insert' with no interactor. Variable `str' does nothing.

Elements might be (?` ?` _ "''"), (?\( ? _ ")") or(?{ \n > _ \n ?} >).
[...]

I am sorry to say, I cant make a head or tail of this cryptic value
suggested for the variable.

Help solicited.

Thanks,
r
-- 
(B.V. Raghav)




reply via email to

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