From: Alan Mackenzie<none@example.invalid>
Subject: Re: C-j is not doing as it is being told
Date: Sat, 6 Mar 2004 09:28:04 +0000 [thread overview]
Message-ID: <4j5c2c.q5.ln@acm.acm> (raw)
In-Reply-To: mailman.1116.1078524441.340.help-gnu-emacs@gnu.org
Ketil Karstad <ketil.karstad@physics.unige.ch> wrote on Wed, 03 Mar 2004
18:53:40 +0100:
> This is a multi-part message in MIME format.
You might win friends by posting in plain text format. The MIME stuff
made your post ~5 times bigger, without adding any content.
> 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?
Latex Mode binds C-j in its local keymap. Anything in a local keymap
will override global bindings.
First of all, are you _sure_ you want to change this binding? I don't
use Latex Mode, but looking in its manual (C-h C-k C-j) find that C-j is
bound to `tex-terminate-paragraph', which does useful things like
checking for unbalanced braces, and so on.
Assuming you really are sure, the thing to do is to remove C-j from the
Latex Mode keymap. Try this in your .emacs (untested):
(eval-after-load "tex-mode"
'(define-key tex-mode-map "\C-j" nil))
> Cheers, kjitta
--
Alan Mackenzie (Munich, Germany)
Email: aacm@muuc.dee; to decode, wherever there is a repeated letter
(like "aa"), remove half of them (leaving, say, "a").
next prev parent reply other threads:[~2004-03-06 9:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[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 [this message]
[not found] <200403060636.i266aWUl012312@mac.com>
2004-03-08 18:37 ` Matthew Calhoun
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4j5c2c.q5.ln@acm.acm \
--to=none@example.invalid \
/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.