From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Deniz Dogan Newsgroups: gmane.emacs.help Subject: Re: Help - TAB annoying keeps getting set to 'previous-line ?? Date: Thu, 14 Jul 2011 15:08:50 +0200 Message-ID: <4E1EEA62.2040901@dogan.se> References: <32059192.post@talk.nabble.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1310650461 22724 80.91.229.12 (14 Jul 2011 13:34:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 14 Jul 2011 13:34:21 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 14 15:34:18 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QhM3S-0001bf-UO for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Jul 2011 15:34:15 +0200 Original-Received: from localhost ([::1]:32844 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhM3R-0007xK-I3 for geh-help-gnu-emacs@m.gmane.org; Thu, 14 Jul 2011 09:34:13 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:50640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhLfe-0002JX-W4 for help-gnu-emacs@gnu.org; Thu, 14 Jul 2011 09:09:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QhLfd-0000Me-EG for help-gnu-emacs@gnu.org; Thu, 14 Jul 2011 09:09:38 -0400 Original-Received: from ch-smtp05.sth.basefarm.net ([80.76.153.6]:44221) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QhLfc-0000MW-Sf for help-gnu-emacs@gnu.org; Thu, 14 Jul 2011 09:09:37 -0400 Original-Received: from c80-216-105-155.bredband.comhem.se ([80.216.105.155]:59738 helo=[192.168.0.10]) by ch-smtp05.sth.basefarm.net with esmtp (Exim 4.76) (envelope-from ) id 1QhLex-0007zG-I8 for help-gnu-emacs@gnu.org; Thu, 14 Jul 2011 15:08:57 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0 In-Reply-To: <32059192.post@talk.nabble.com> X-Originating-IP: 80.216.105.155 X-Scan-Result: No virus found in message 1QhLex-0007zG-I8. X-Scan-Signature: ch-smtp05.sth.basefarm.net 1QhLex-0007zG-I8 f458e0848ce685bfa519b34ba09ae28a X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.76.153.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81583 Archived-At: On 2011-07-14 09:15, -ph7 wrote: > > I'm new to emacs (and hating it so far) and want to change some key binds > around so that it's not so awful. > However, after I started remapping some keys in my .emacs file, my TAB key > keeps acting funny. > > I changed C-i to 'previous-line and C-k to 'next-line, now every time I hit > tab it runs 'previous-line. When I delete the line "(global-set-key (kbd > "C-i") 'aquamacs-previous-line)" TAB works fine, so I know this is the > problem > > Help? I have tried stupid things like changing 'aquamacs-previous-line to > just 'previous-line, using escape charactesr like "\C-i" and ?\C-i, ect... > > I am using Aquamacs and here is my current .emacs file: > > (global-set-key (kbd "C-z") 'shell) > (global-set-key (kbd "C-i") 'aquamacs-previous-line) > (global-set-key (kbd "C-s") 'backward-word) > (global-set-key (kbd "C-f") 'forward-word) > (global-set-key (kbd "C-k") 'aquamacs-next-line) > (global-set-key (kbd "C-l") 'forward-char) > (global-set-key (kbd "C-j") 'backward-char) > > (global-set-key (kbd "C-u") 'aquamacs-move-beginning-of-line) > (global-set-key (kbd "C-o") 'aquamacs-move-end-of-line) > (global-set-key (kbd "C-d") 'scroll-up) > (global-set-key (kbd "C-e") 'scroll-down) > (global-set-key (kbd "C-'") 'recenter-top-bottom) > > (global-set-key (kbd "C-n") 'kill-line) > > ;;; I prefer cmd key for meta > (setq mac-option-key-is-meta nil > mac-command-key-is-meta t > mac-command-modifier 'meta > mac-option-modifier 'none) > "TAB" is the same as "C-i" in a terminal and there is no way to distinguish them there. In "GUI" Emacs (I'm not sure Aquamacs is GUI, I haven't used it), you can distinguish the two by binding C-i to one thing and TAB to another. (global-set-key (kbd "C-i") 'wassup-dawg) (global-set-key (kbd "") 'why-hello-there) Hope that helps, Deniz