all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Deniz Dogan <deniz@dogan.se>
To: help-gnu-emacs@gnu.org
Subject: Re: Help - TAB annoying keeps getting set to 'previous-line  ??
Date: Thu, 14 Jul 2011 15:08:50 +0200	[thread overview]
Message-ID: <4E1EEA62.2040901@dogan.se> (raw)
In-Reply-To: <32059192.post@talk.nabble.com>

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	other threads:[~2011-07-14 13:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-14  7:15 Help - TAB annoying keeps getting set to 'previous-line ?? -ph7
2011-07-14 13:08 ` Deniz Dogan [this message]
2011-07-14 13:14 ` Tassilo Horn
2011-07-14 13:32 ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E1EEA62.2040901@dogan.se \
    --to=deniz@dogan.se \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.