From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Hansen Newsgroups: gmane.emacs.help Subject: Re: left brackets insert both Date: Sat, 26 Mar 2005 13:48:27 +0100 Organization: disorganized Message-ID: <87r7i27euc.fsf@robotron.ath.cx> References: <1111765040.509327.116280@g14g2000cwa.googlegroups.com> <87ll8b2022.fsf@robotron.ath.cx> <1111769127.619222.303620@z14g2000cwz.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1111841876 17543 80.91.229.2 (26 Mar 2005 12:57:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 26 Mar 2005 12:57:56 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 26 13:57:55 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DFArR-0001ia-6V for geh-help-gnu-emacs@m.gmane.org; Sat, 26 Mar 2005 13:57:53 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DFB77-0001A3-Ha for geh-help-gnu-emacs@m.gmane.org; Sat, 26 Mar 2005 08:14:05 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.ems.psu.edu!news.cse.psu.edu!elk.ncren.net!nntp.upenn.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-X-Trace: individual.net c4BO4JNfhoq7JMcrdIXNwQuNeExqTNyw6gZD7vWyjuFcgvokc= X-Orig-Path: robotron.ath.cx!news Mail-Copies-To: nobody User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:1abXTQ+8EdvP+ckq3Q0l00zyriw= Original-Xref: shelby.stanford.edu gnu.emacs.help:129638 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: news.gmane.org gmane.emacs.help:25189 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25189 On 25 Mar 2005 08:45:27 -0800 Shug Boabby wrote: > excellent! i had found the exact setup once rgb had pointed me to the > function call, but cheers david! > > however, it is sometimes annoying that a single type of a bracket does > this... any chance i could set it only to work on double taps? Well, seems you already found a solution. What i do when i want a single paren is C-q (. > i get nothing when i try something like: (global-set-key [?\< > ?\<] 'skeleton-pair-insert-maybe) You can define new skeletons via (add-to-list 'skeleton-pair-alist '(?< _ ?>)) (global-set-key "<" 'skeleton-pair-insert-maybe) David