From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Francisco Borges Newsgroups: gmane.emacs.help Subject: local key swap? alternatives? Date: Thu, 1 Sep 2005 14:46:42 +0200 Organization: Alfa Informatica - Rijksuniversiteit Groningen Message-ID: <20050901124642.GB13963@let.rug.nl> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1125580445 12240 80.91.229.2 (1 Sep 2005 13:14:05 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 1 Sep 2005 13:14:05 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Sep 01 15:14:01 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EAosG-000768-U2 for geh-help-gnu-emacs@m.gmane.org; Thu, 01 Sep 2005 15:13:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EAowI-00027f-Cp for geh-help-gnu-emacs@m.gmane.org; Thu, 01 Sep 2005 09:17:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EAohr-0005Vv-8H for help-gnu-emacs@gnu.org; Thu, 01 Sep 2005 09:02:15 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EAofm-0004qd-3E for help-gnu-emacs@gnu.org; Thu, 01 Sep 2005 09:00:06 -0400 Original-Received: from [129.125.8.60] (helo=dep.let.rug.nl) by monty-python.gnu.org with smtp (Exim 4.34) id 1EAoVH-0001UX-CF for help-gnu-emacs@gnu.org; Thu, 01 Sep 2005 08:49:15 -0400 Original-Received: from dep.let.rug.nl ([129.125.8.60]) by dep.let.rug.nl (SMSSMTP 4.1.0.19) with SMTP id M2005090114414707921 for ; Thu, 01 Sep 2005 14:41:47 +0200 Original-Received: from loki (postfix@loki.let.rug.nl [129.125.8.86]) by dep.let.rug.nl (8.12.10/8.12.10) with ESMTP id j81CfiVk012410 for ; Thu, 1 Sep 2005 14:41:45 +0200 (MEST) Original-Received: by loki (Postfix, from userid 7006) id 9BD4FE73D; Thu, 1 Sep 2005 14:46:44 +0200 (CEST) Original-To: Help GNU Emacs Content-Disposition: inline X-Operating-System: Linux/2.6.8-1-686 (i686) X-Editor: GNU Emacs 22.0.50.1 User-Agent: Mutt/1.5.9i X-Whitelist: OK X-Scanned-By: milter-spamc/0.25.321 (dep.let.rug.nl [129.125.8.60]); Thu, 01 Sep 2005 14:41:46 +0200 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:29151 Archived-At: Hello, I'm running Emacs 22.0.50.1 which I got from KarolyLorentey's multi-tty branch, as I don't think this is related to multi-tty's patch I'm posting here... Long ago I came with the idea to swap keys in LaTeX buffers to be able to type popular LaTeX characters without SHIFT, namely $%^&*()_{}. So I thought of swapping ($,4), (%,5) etc but I wanted it only for LaTeX-mode and never figured out how to perform a local key swap. Instead I modified lisp/double.el to use doubles as (?4 "$" "4") (?5 "%" "5") etc, e.g. hitting '4' once I get '$', hit twice I get '4'. To get a decent compromise. With my last compilation of emacs (22.0.50.1), this has stopped working. Two questions: 1. Is there an easy way for me to get this to work again? 2. Would anyone recommend another approach to the problem? Is there a way to swap keys locally in Emacs? ----- Thank you for your attention, Francisco. and BTW, thank you for Emacs ;-)