unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Mark Mynsted <mmynsted_news@gbronline.com>
Subject: Re: M-TAB already used by KDE
Date: 16 Dec 2002 15:32:53 -0600	[thread overview]
Message-ID: <m2d6o1r6nu.fsf@mmynsted.corp.vha.com> (raw)
In-Reply-To: 3dfe3ea4.1245206@news.cis.dfn.de

>>>>> "Marcel" == Marcel Schmittfull <marcel-sl@gmx.de> writes:
Marcel> Hi
Marcel> I use KDE and therefore the keybinding M-<TAB> is already used for
Marcel> switching between windows. 

Hmm.  To me M-Tab is "already" used by Emacs rather than the other way
around, but then I prefer ratpoison to KDE anyway...  The keybindings
for ratpoison are more Emacs friendly.  ratpoison is not ideal if you
open any close many tiny windows, but if you are like me and have a
small number of "fullscreen" windows, it is quite nice.

http://ratpoison.sourceforge.net/

Marcel>Unfortunately there are several emacs modes
Marcel> which try to use M-<TAB> for completion (f.e. lisp-mode, AUCTeX, ...).
Marcel> However, the KDE setting seems to be "stronger" than the emacs setting
Marcel> and hence I can only switch between windows with M-<TAB>. 

Marcel> Is it possible to tell emacs that whenever I type a certain
Marcel> keybinding, f.e. C-x M-<TAB> or so, emacs behaves as if I typed
Marcel> M-<TAB> ? 

Yes, by using key maps.

Marcel>I.e. I don't want to change the M-<TAB> keybinding for every
Marcel> single mode, I just want to have a certain global keybinding which
Marcel> replaces M-<TAB> globally. Is this possible ?

OK, I am not exactly clear about what you want.  Do you want a global
keybinding for all modes, or a keybinding for specific modes? (Maybe
my nomenclature is imperfect here.)

As I recall, to use a key map for a specific mode, you simply define a
mode map, then make the mode map active when you start that mode.

Here is some information from the info page regarding Local
Keymaps. (See keys in the Emacs info documentation.)

"
   For example, the command `texinfo-mode' to select Texinfo mode runs
the hook `texinfo-mode-hook'.  Here's how you can use the hook to add
local bindings (not very useful, we admit) for `C-c n' and `C-c p' in
Texinfo mode:

     (add-hook 'texinfo-mode-hook
               '(lambda ()
                  (define-key texinfo-mode-map "\C-cp"
                              'backward-paragraph)
                  (define-key texinfo-mode-map "\C-cn"
                              'forward-paragraph)))

"
-- 
-MM
I rarely read email from this address          /"\
because of spam.                               \ /     ASCII Ribbon Campaign
I MAY see it if you put #NOTSPAM#               X      Against HTML Mail
in the subject line.                           / \

  parent reply	other threads:[~2002-12-16 21:32 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-16 21:12 M-TAB already used by KDE Marcel Schmittfull
2002-12-16 21:13 ` David Kastrup
2002-12-16 21:39   ` Marcel Schmittfull
2002-12-16 21:54     ` Benjamin Lewis
     [not found]       ` <87bs3l2fgk.fsf@kuntu.zangpo.org>
2002-12-17 10:46         ` Kai Großjohann
     [not found]           ` <87u1hcyseg.fsf@kuntu.zangpo.org>
2002-12-18 17:35             ` Kai Großjohann
2002-12-17 21:53         ` Benjamin Lewis
2002-12-21  1:11           ` Big Bird
2002-12-18 15:23       ` Marcel Schmittfull
2002-12-18 17:12         ` Kai Großjohann
2002-12-18 18:59         ` asoyeur
2002-12-19 11:00     ` Kester Clegg
2002-12-16 21:32 ` Mark Mynsted [this message]
2002-12-16 21:43   ` Marcel Schmittfull
2002-12-17  7:42 ` Roman Belenov
2002-12-17  9:19 ` Kai Großjohann
2002-12-18 18:29   ` Fredrik Staxeng
2002-12-18 20:26     ` Kai Großjohann
2002-12-18 21:46       ` Fredrik Staxeng
2002-12-19  7:32         ` Kai Großjohann
2002-12-19 11:59           ` Fredrik Staxeng
2002-12-19 14:25             ` Kai Großjohann
2002-12-19 15:36               ` Fredrik Staxeng
2002-12-20 18:42                 ` Kai Großjohann
2002-12-20 21:24                   ` Fredrik Staxeng
2002-12-20 22:04                     ` Benjamin Lewis
2002-12-20 23:29                     ` yuan
2002-12-21 12:55                     ` Kai Großjohann
2002-12-21 13:57                       ` Fredrik Staxeng
2002-12-17 18:02 ` Jochem Huhmann
2002-12-19 13:26 ` Carsten Dominik
  -- strict thread matches above, loose matches on Subject: below --
2002-12-17 18:52 Marcel Schmittfull

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=m2d6o1r6nu.fsf@mmynsted.corp.vha.com \
    --to=mmynsted_news@gbronline.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.
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).