From: "B. T. Raven" <ecinmn@peoplepc.com>
Subject: Re: Trouble with global-set-key to map meta-g with 'goto-line
Date: Thu, 20 Apr 2006 16:20:09 GMT [thread overview]
Message-ID: <ZwO1g.9314$i41.7470@newsread1.news.atl.earthlink.net> (raw)
In-Reply-To: mailman.642.1145542481.9609.help-gnu-emacs@gnu.org
"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.
next parent reply other threads:[~2006-04-20 16:20 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.642.1145542481.9609.help-gnu-emacs@gnu.org>
2006-04-20 16:20 ` B. T. Raven [this message]
2006-04-20 16:43 ` Trouble with global-set-key to map meta-g with 'goto-line B. T. Raven
2006-04-20 18:26 ` Stefan Monnier
2006-04-21 0:16 ` Barry Margolin
2006-04-21 0:58 ` Miles Bader
2006-04-21 12:00 ` Hadron Quark
[not found] ` <mailman.679.1145581160.9609.help-gnu-emacs@gnu.org>
2006-04-21 6:25 ` Sven Urbanski
2006-04-21 17:18 ` Miles Bader
[not found] ` <mailman.720.1145639922.9609.help-gnu-emacs@gnu.org>
2006-04-21 18:56 ` trouble with tabs [Re: Trouble with global-set-key to map meta-g with 'goto-line] Sven Urbanski
2006-04-22 0:58 ` Miles Bader
[not found] ` <mailman.751.1145667494.9609.help-gnu-emacs@gnu.org>
2006-04-22 2:41 ` Barry Margolin
2006-04-22 2:31 ` Trouble with global-set-key to map meta-g with 'goto-line Barry Margolin
2006-04-24 8:44 ` Stefan Monnier
2006-04-21 1:33 ` Lee David
2006-04-20 21:00 ` Giorgos Pontikakis
2006-04-20 14:14 David Lee
2006-04-20 15:21 ` Peter Dyballa
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='ZwO1g.9314$i41.7470@newsread1.news.atl.earthlink.net' \
--to=ecinmn@peoplepc.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.
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.