unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Matthew Calhoun <calhounm@mac.com>
Subject: Re: C-j is not doing as it is being told
Date: Mon, 8 Mar 2004 10:37:29 -0800	[thread overview]
Message-ID: <A74B0FBC-712F-11D8-AF9D-0003930EBF00@mac.com> (raw)
In-Reply-To: <200403060636.i266aWUl012312@mac.com>

I was being frustrated by a similar problem until I looked at the 
documentation for global-set-key. It mentions that "if KEY has a local 
binding in the current buffer, that local binding will continue to 
shadow any global binding that you make with this function." So I tried 
inserting a call to local-set-key in the hook of the appropriate mode. 
I can't say whether this is the "right" way to go about it, but it 
seems to work.

Matt

El Mar 5, 2004, a las 10:36 PM, help-gnu-emacs-request@gnu.org escribió:

> Hi
>
> I wanted to remap some key combinations, including C-j. I use
> global-unset-key followed by global-set-key for each key combo and it
> works fine most of the time apart from when emacs enters Latex-mode
> where C-j reverts to its default behavoir and ignores my remapping.
> Any suggestion what is causing this and what I can do to stop it?
>
> Cheers,
> kjitta

       reply	other threads:[~2004-03-08 18:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200403060636.i266aWUl012312@mac.com>
2004-03-08 18:37 ` Matthew Calhoun [this message]
     [not found] <mailman.1116.1078524441.340.help-gnu-emacs@gnu.org>
2004-03-05 22:56 ` C-j is not doing as it is being told Barry Margolin
2004-03-06  9:28 ` Alan Mackenzie
2004-03-03 17:53 Ketil Karstad

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=A74B0FBC-712F-11D8-AF9D-0003930EBF00@mac.com \
    --to=calhounm@mac.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).