* Help - TAB annoying keeps getting set to 'previous-line ??
@ 2011-07-14 7:15 -ph7
2011-07-14 13:08 ` Deniz Dogan
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: -ph7 @ 2011-07-14 7:15 UTC (permalink / raw)
To: Help-gnu-emacs
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)
--
View this message in context: http://old.nabble.com/Help---TAB-annoying-keeps-getting-set-to-%27previous-line-----tp32059192p32059192.html
Sent from the Emacs - Help mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Help - TAB annoying keeps getting set to 'previous-line ??
2011-07-14 7:15 Help - TAB annoying keeps getting set to 'previous-line ?? -ph7
@ 2011-07-14 13:08 ` Deniz Dogan
2011-07-14 13:14 ` Tassilo Horn
2011-07-14 13:32 ` Drew Adams
2 siblings, 0 replies; 4+ messages in thread
From: Deniz Dogan @ 2011-07-14 13:08 UTC (permalink / raw)
To: help-gnu-emacs
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Help - TAB annoying keeps getting set to 'previous-line ??
2011-07-14 7:15 Help - TAB annoying keeps getting set to 'previous-line ?? -ph7
2011-07-14 13:08 ` Deniz Dogan
@ 2011-07-14 13:14 ` Tassilo Horn
2011-07-14 13:32 ` Drew Adams
2 siblings, 0 replies; 4+ messages in thread
From: Tassilo Horn @ 2011-07-14 13:14 UTC (permalink / raw)
To: help-gnu-emacs
-ph7 <ryanexile@gmail.com> writes:
> 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.
That's the right first sentence to make friends in an emacs group. :-)
> 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.
Are you running emacs in a terminal? In that case, C-i and TAB are the
same (C-i is the ASCII escape characted for TAB).
Have a look at:
,----[ (info "(emacs)Named ASCII Chars") ]
| With an ordinary ASCII terminal, there is no way to distinguish
| between <TAB> and `C-i' (and likewise for other such pairs), because
| the terminal sends the same character in both cases.
`----
Bye,
Tassilo
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: Help - TAB annoying keeps getting set to 'previous-line ??
2011-07-14 7:15 Help - TAB annoying keeps getting set to 'previous-line ?? -ph7
2011-07-14 13:08 ` Deniz Dogan
2011-07-14 13:14 ` Tassilo Horn
@ 2011-07-14 13:32 ` Drew Adams
2 siblings, 0 replies; 4+ messages in thread
From: Drew Adams @ 2011-07-14 13:32 UTC (permalink / raw)
To: '-ph7', Help-gnu-emacs
C-i and TAB are the same ASCII control character.
But see the Emacs manual, main menu, this entry:
* Named ASCII Chars Distinguishing <TAB> from C-i, and so on.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-07-14 13:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-14 7:15 Help - TAB annoying keeps getting set to 'previous-line ?? -ph7
2011-07-14 13:08 ` Deniz Dogan
2011-07-14 13:14 ` Tassilo Horn
2011-07-14 13:32 ` Drew Adams
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).