all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Barry Margolin <barmar@alum.mit.edu>
Subject: Re: keybinding not working
Date: Thu, 01 Jul 2004 01:20:20 -0400	[thread overview]
Message-ID: <barmar-432783.01202001072004@comcast.dca.giganews.com> (raw)
In-Reply-To: cc03v1$9pp$1@solaria.cc.gatech.edu

In article <cc03v1$9pp$1@solaria.cc.gatech.edu>,
 Charles Harrison Caudill <kungfoo@myrna.cc.gatech.edu> wrote:

> I have a keybinding in my .emacs file to toggle a fold when I'm on one for 
> use with folding mode.  When I use folding mode in conjunction with matlab
> mode, something seems to clobber that keybinding.  When I explicitly run
> M-x global-set-key C-M-a folding-toggle-show-hide it *still* doesn't work.
> 
> Thanks in advance guys!
> 
> From .emacs:
> 
> ;; Folding Mode
> (global-set-key "\C-\M-a" 'folding-toggle-show-hide)

Global keybindings can be shadowed by local keybindings.  So I suspect 
that matlab-mode has a local keybinding for this sequence, and it takes 
precedence.  In fact, I think most language modes bind C-M-a -- it's 
commonly used to go to the beginning of the current function or 
procedure.  If you want to override this in a particular mode, you'll 
need to use a mode hook that removes the local binding.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***

  parent reply	other threads:[~2004-07-01  5:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-01  4:29 keybinding not working Charles Harrison Caudill
2004-07-01  5:18 ` David Vanderschel
2004-07-01  5:20 ` Barry Margolin [this message]
2004-07-01 15:42 ` Kevin Rodgers

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=barmar-432783.01202001072004@comcast.dca.giganews.com \
    --to=barmar@alum.mit.edu \
    /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.