From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Patrick Drechsler Newsgroups: gmane.emacs.help Subject: Re: how to close braces in all modes automatically? Date: Thu, 06 Nov 2003 15:49:16 +0100 Organization: Dept. of Zoology 2, Biocenter, University of Wuerzburg, Germany 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 1068130199 30453 80.91.224.253 (6 Nov 2003 14:49:59 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 6 Nov 2003 14:49:59 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Nov 06 15:49:57 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 1AHlSP-0006Tg-00 for ; Thu, 06 Nov 2003 15:49:57 +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 1AHlRG-000457-Ua for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Nov 2003 09:48:46 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!fu-berlin.de!uni-berlin.de!wzod41.biozentrum.uni-wuerzburg.DE!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: wzod41.biozentrum.uni-wuerzburg.de (132.187.76.141) Original-X-Trace: news.uni-berlin.de 1068129880 47065136 132.187.76.141 (16 [166469]) User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:chCJlMspKXB2SAwn0vkhq6MmT8Y= Original-Xref: shelby.stanford.edu gnu.emacs.help:117918 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:13857 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:13857 Hi Jiri, Jiri Pejchal wrote on 06 Nov 2003 13:46:03 MET: > 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) Exactly what I was looking for! Thank you very much, Patrick -- If your operating system goes down more often than your girlfriend, then either you need to get a Catholic girl, or you need to stop running NT.