From: "B.V. Raghav" <bvraghav@iitk.ac.in>
To: help-gnu-emacs@gnu.org
Subject: Skeleton angle brackets '<' and '>'
Date: Wed, 06 Jan 2016 02:42:53 +0530 [thread overview]
Message-ID: <871t9vohm2.fsf@think.bvr.lan> (raw)
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)
next reply other threads:[~2016-01-05 21:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-05 21:12 B.V. Raghav [this message]
[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
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871t9vohm2.fsf@think.bvr.lan \
--to=bvraghav@iitk.ac.in \
--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.
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).