all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ian Crowther" <i_crowther@hotmail.com>
Subject: Preventing modes overriding global keys
Date: Sun, 12 Jun 2005 21:39:25 +0100	[thread overview]
Message-ID: <BAY102-F84F502C00874C997CFE8AFBF10@phx.gbl> (raw)

I'm trying to make emacs bind end-of-line to the tab key in all modes. 
Doing:

	(global-set-key (kbd "TAB") 'end-of-line)

doesn't have any effect. "C-h k <TAB>" shows:
	TAB runs the command lisp-indent-line

I assume my parameters to global-set-key are correct, as local-set-key 
works.
It looks like the lisp mode is defining the tab key. If I evaluate 
"(lisp-mode)" then
my binding made with local-set-key is disabled.

Is there a way to override the mode settings for the tab key? Or a way to 
prevent
modes overriding certain keys in the first place?

Thanks for any help. I'm really stuck on this one.

Ian

             reply	other threads:[~2005-06-12 20:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-12 20:39 Ian Crowther [this message]
2005-06-14 18:07 ` Preventing modes overriding global keys Kevin Rodgers
     [not found] <mailman.4448.1118610019.25862.help-gnu-emacs@gnu.org>
2005-06-12 22:17 ` Pascal Bourguignon

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=BAY102-F84F502C00874C997CFE8AFBF10@phx.gbl \
    --to=i_crowther@hotmail.com \
    /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.