help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help - TAB annoying keeps getting set to 'previous-line ??


From: Deniz Dogan
Subject: Re: Help - TAB annoying keeps getting set to 'previous-line ??
Date: Thu, 14 Jul 2011 15:08:50 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0

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 "<tab>") 'why-hello-there)

Hope that helps,
Deniz



reply via email to

[Prev in Thread] Current Thread [Next in Thread]