From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jiri Pejchal Newsgroups: gmane.emacs.help Subject: Re: how to close braces in all modes automatically? Date: Thu, 6 Nov 2003 12:46:03 GMT Organization: unknown Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1068124103 16040 80.91.224.253 (6 Nov 2003 13:08:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 Nov 2003 13:08:23 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 06 14:08:21 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AHjs5-0008KE-00 for ; Thu, 06 Nov 2003 14:08:21 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AHjmt-0000to-QD for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Nov 2003 08:02:59 -0500 Original-Newsgroups: gnu.emacs.help Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!news2.telebyte.nl!newsfeed.stueberl.de!news.space.net!news-out.spamkiller.net!propagator2-maxim!news-in.superfeed.net!news.cesnet.cz!crax.cesnet.cz!news.vutbr.cz!news.muni.cz!news User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Original-Lines: 20 X-Nntp-Posting-Host: nymfe04.fi.muni.cz Original-Xref: shelby.stanford.edu gnu.emacs.help:117916 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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 Xref: main.gmane.org gmane.emacs.help:13855 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13855 Patrick Drechsler writes: > Hi, > > is there a simple way of closing all braces automatically in all > modes (i.e. HTML, Java, LaTeX, Matlab,...)? What about this: (setq skeleton-pair t) (global-set-key "(" 'skeleton-pair-insert-maybe) (global-set-key "[" 'skeleton-pair-insert-maybe) (global-set-key "\"" 'skeleton-pair-insert-maybe) (global-set-key "'" 'skeleton-pair-insert-maybe) (global-set-key "{" 'skeleton-pair-insert-maybe) -- Jiri Pejchal