From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leon Newsgroups: gmane.emacs.help Subject: Two Emacs challenges Date: Fri, 16 Jun 2006 21:03:12 +0100 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1150488242 3443 80.91.229.2 (16 Jun 2006 20:04:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 16 Jun 2006 20:04:02 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 16 22:04:01 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FrKXl-0001ze-AJ for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Jun 2006 22:03:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FrKXk-000320-TJ for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Jun 2006 16:03:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FrKXZ-00030S-4Z for help-gnu-emacs@gnu.org; Fri, 16 Jun 2006 16:03:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FrKXX-0002z1-R3 for help-gnu-emacs@gnu.org; Fri, 16 Jun 2006 16:03:36 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FrKXX-0002yT-Ht for help-gnu-emacs@gnu.org; Fri, 16 Jun 2006 16:03:35 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FrKhE-0001I4-6e for help-gnu-emacs@gnu.org; Fri, 16 Jun 2006 16:13:36 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FrKXN-0001vy-Sw for help-gnu-emacs@gnu.org; Fri, 16 Jun 2006 22:03:25 +0200 Original-Received: from sl392.st-edmunds.cam.ac.uk ([131.111.223.202]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 Jun 2006 22:03:25 +0200 Original-Received: from sdl.web by sl392.st-edmunds.cam.ac.uk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 Jun 2006 22:03:25 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 25 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: sl392.st-edmunds.cam.ac.uk Face: iVBORw0KGgoAAAANSUhEUgAAAEAAAAASCAMAAADc8SgQAAAAwFBMVEUCBQEJDAgTFRIaHBof IB4jJCIrLCotLywyNDE3OTY8Pjs/QD5FRkRJS0hRU1BWV1VbXVpiZGFnaWZrbWptb2xvcW52eHV5 enh+gH2Bg4CHiYaLjYqNj4yRk5CXmZaanJmdn5ygop+mqKWqrKmsrqutr6yxs7CztbK4ure7vbq/ wb7DxcLHycbJy8jNz8vQ0s/T1dLW2NXc3tvf4d7h5ODl5+Po6ufr7enu8O3x8/Dz9fL1+PT4+vf6 /Pn7/fr+//wGuxWtAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH1gIaAyMw1+FInQAAAXxJ REFUOMulk+tygjAQhalFWodYvIwyiNUKA95QVLwQhLPv/1ZNAKWX8Yd6ZsLAZvdL9iQo9KSUx0v3 0wV/BjDSzZY6exxw0BJgrqaPApBtQeDK6eEdAGJ4DQhAZjFmWVZf798LmTUi6QGgmQCysHtfeWa1 OXITj8pMYrh9Vz03vmQbEuArMeETSZBPpIdKvMg9B2faL2NKgl3R/zZIuFZnjDW5bKGnrVfmROLk 5LhWqVmEbEcfu8u3+XD14YrvjeEsWRrlyj3QDN/To6u96VVJmkdO40AJAVU4ZQqfInWDhcpRSABi ZQ4MQYusPJ9KRSDhtgEclROBjQhGK8+hfMgdeMICSpGaRf6iU8kuiUzwnXdQ/BJleJ38/pnQ0yUJ g8JDbOxKbnlgtZDQ7Ql/GGzUxZnR7ngBxEHdCMP1rKOD/rVQhlY18aL5BMuczmncTmJnkF4AO9/3 PN9z3e3tW3uciodzFm58LcUCwWgS4drC39Vu3XsqbMu7/Zn8DYna+irHnqnQAAAAAElFTkSuQmCC User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.0 (gnu/linux) Cancel-Lock: sha1:nYJowAUc0kVfDNiHKrpy4RUvI3o= 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 Xref: news.gmane.org gmane.emacs.help:35509 Archived-At: Dear all, I found two useful key bindings but they seems not obvious to achieve. (1) Ctrl+Tab & Alt+Tab Since most window managers have used Alt+Tab for switching windows, Alt+Tab key bindings is useless in Emacs running in X. Is there something I can set in ~/.emacs so that Alt+Tab will be remapped to Ctrl+Tab? For example, if AUCTeX has bound to TeX-complete-symbol, the function should be *automatically* bound to when I enter LaTeX-mode. (2) pairs How to bind keys such as (, [, {, " etc to perform such function When type once, it will insert a pair while twice insert itself for example: `[' will insert `[]' and leave the cursor in the middle while `[[' will insert `['? Thank you all. -- Leon