unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Skeleton angle brackets '<' and '>'
@ 2016-01-05 21:12 B.V. Raghav
  0 siblings, 0 replies; 5+ messages in thread
From: B.V. Raghav @ 2016-01-05 21:12 UTC (permalink / raw)
  To: help-gnu-emacs

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)




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-01-08 18:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1800.1452028390.843.help-gnu-emacs@gnu.org>
2016-01-06 17:59 ` Skeleton angle brackets '<' and '>' Alan Mackenzie
2016-01-07  4:03   ` B.V. Raghav
2016-01-07  9:07   ` Yuri Khan
2016-01-08 18:33   ` B.V. Raghav
2016-01-05 21:12 B.V. Raghav

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).