[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Trouble with global-set-key to map meta-g with 'goto-line
From: |
B. T. Raven |
Subject: |
Re: Trouble with global-set-key to map meta-g with 'goto-line |
Date: |
Thu, 20 Apr 2006 16:20:09 GMT |
"David Lee" <live4thee@gmail.com> wrote in message
news:mailman.642.1145542481.9609.help-gnu-emacs@gnu.org...
> Hi, all
> I am a beginner with GNU Emacs(21.3.1). I added this line to ~/.emacs
> (global-set-key [(meta-g)] 'goto-line)
> but it doesn't work for me, and minibuffer gave this hint:
> Set face: default (M-g d), bold (M-g b), italic (M-g i)..
>
> Seems that my settings didn't take effects.
>
> Anything wrong?
>
> [ I'm using SuSE 10.0, and I tried with failure under FC5, either. ]
>
> Thanks in advance.
It looks like M-g is already reserved as a prefix. In version 22.0.50 M-g
g runs 'goto-line. Try putting this in *scratch* and evaluating it. (C-j
after close paren of the form):
(global-set-key "\C-cg" ('goto-line)
I think that C-c is a mapping reserved for user bindings. That way you
won't have to mess with the default bindings into which a lot of thought
has gone. If C-c g is okay with you, you can put it in your .emacs.
Ed.
- Trouble with global-set-key to map meta-g with 'goto-line, David Lee, 2006/04/20
- Re: Trouble with global-set-key to map meta-g with 'goto-line,
B. T. Raven <=
- Re: Trouble with global-set-key to map meta-g with 'goto-line, Stefan Monnier, 2006/04/20
- Re: Trouble with global-set-key to map meta-g with 'goto-line, Barry Margolin, 2006/04/20
- Re: Trouble with global-set-key to map meta-g with 'goto-line, Miles Bader, 2006/04/20
- Message not available
- Re: Trouble with global-set-key to map meta-g with 'goto-line, Sven Urbanski, 2006/04/21
- Re: Trouble with global-set-key to map meta-g with 'goto-line, Miles Bader, 2006/04/21
- Message not available
- trouble with tabs [Re: Trouble with global-set-key to map meta-g with 'goto-line], Sven Urbanski, 2006/04/21
- Re: trouble with tabs [Re: Trouble with global-set-key to map meta-g with 'goto-line], Miles Bader, 2006/04/21
- Message not available
- Re: trouble with tabs [Re: Trouble with global-set-key to map meta-g with 'goto-line], Barry Margolin, 2006/04/21
- Re: Trouble with global-set-key to map meta-g with 'goto-line, Hadron Quark, 2006/04/21