* keybinding not working
@ 2004-07-01 4:29 Charles Harrison Caudill
2004-07-01 5:18 ` David Vanderschel
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Charles Harrison Caudill @ 2004-07-01 4:29 UTC (permalink / raw)
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)
--
Harrison Caudill | .^ www.hypersphere.org
Computer Science & Physics Double Major | | Me*Me=1
Georgia Institute of Technology | v' I'm just a normal guy
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: keybinding not working
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
2004-07-01 15:42 ` Kevin Rodgers
2 siblings, 0 replies; 4+ messages in thread
From: David Vanderschel @ 2004-07-01 5:18 UTC (permalink / raw)
"Charles Harrison Caudill" <kungfoo@myrna.cc.gatech.edu> wrote in message
news:cc03v1$9pp$1@solaria.cc.gatech.edu...
> 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.
A minor-mode binding will still override a global
binding. I'd suggest that you check out what is bound
to C-M-a using describe-key and then shut that down if
you can. Failing that, you can just switch to a
different key.
Regards,
David V.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: keybinding not working
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
2004-07-01 15:42 ` Kevin Rodgers
2 siblings, 0 replies; 4+ messages in thread
From: Barry Margolin @ 2004-07-01 5:20 UTC (permalink / raw)
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 ***
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: keybinding not working
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
@ 2004-07-01 15:42 ` Kevin Rodgers
2 siblings, 0 replies; 4+ messages in thread
From: Kevin Rodgers @ 2004-07-01 15:42 UTC (permalink / raw)
Charles Harrison Caudill 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)
Use a `C-c LETTER' key binding, which is reserved for users. E.g.
(global-set-key "\C-ca" 'folding-toggle-show-hide)
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-07-01 15:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2004-07-01 15:42 ` Kevin Rodgers
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.