From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B.V. Raghav" Newsgroups: gmane.emacs.help Subject: Skeleton angle brackets '<' and '>' Date: Wed, 06 Jan 2016 02:42:53 +0530 Message-ID: <871t9vohm2.fsf@think.bvr.lan> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1452028414 3999 80.91.229.3 (5 Jan 2016 21:13:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Jan 2016 21:13:34 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jan 05 22:13:26 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aGYux-0001T9-S8 for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Jan 2016 22:13:24 +0100 Original-Received: from localhost ([::1]:51479 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGYux-00079m-5D for geh-help-gnu-emacs@m.gmane.org; Tue, 05 Jan 2016 16:13:23 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53914) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGYui-00076R-CF for help-gnu-emacs@gnu.org; Tue, 05 Jan 2016 16:13:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGYuf-0004Qk-1q for help-gnu-emacs@gnu.org; Tue, 05 Jan 2016 16:13:08 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:54805) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGYue-0004Qg-Ra for help-gnu-emacs@gnu.org; Tue, 05 Jan 2016 16:13:04 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aGYud-00019T-Dy for help-gnu-emacs@gnu.org; Tue, 05 Jan 2016 22:13:03 +0100 Original-Received: from 103.246.106.24 ([103.246.106.24]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Jan 2016 22:13:03 +0100 Original-Received: from bvraghav by 103.246.106.24 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 05 Jan 2016 22:13:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 33 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 103.246.106.24 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:NnueIHQpVLLtdzI9cKA9K9q2kc8= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:108628 Archived-At: 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)