From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: PAolo Newsgroups: gmane.emacs.help Subject: Re: Go to line Date: 23 Apr 2007 08:29:01 -0700 Organization: http://groups.google.com Message-ID: <1177342141.484639.203300@b75g2000hsg.googlegroups.com> References: <1177340103.887135.165610@p77g2000hsh.googlegroups.com> <1177340898.990872.278280@o5g2000hsb.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1177342622 4368 80.91.229.12 (23 Apr 2007 15:37:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 23 Apr 2007 15:37:02 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 23 17:36:56 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Hg0au-0005Rd-Jd for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Apr 2007 17:36:48 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hg0gK-0002Fg-29 for geh-help-gnu-emacs@m.gmane.org; Mon, 23 Apr 2007 11:42:24 -0400 Original-Path: shelby.stanford.edu!newshub.stanford.edu!postnews.google.com!b75g2000hsg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-NNTP-Posting-Host: 213.156.35.243 Original-X-Trace: posting.google.com 1177342141 9606 127.0.0.1 (23 Apr 2007 15:29:01 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 23 Apr 2007 15:29:01 +0000 (UTC) In-Reply-To: <1177340898.990872.278280@o5g2000hsb.googlegroups.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.3) Gecko/20070310 Iceweasel/2.0.0.3 (Debian-2.0.0.3-1),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: b75g2000hsg.googlegroups.com; posting-host=213.156.35.243; posting-account=IUKBqw0AAAA20h6bQ4szGb6NQ7Fjz25G Original-Xref: shelby.stanford.edu gnu.emacs.help:147416 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:43020 Archived-At: On 23 Apr, 17:08, james wrote: > On Apr 23, 9:55 am, PAolo wrote: > > > Hi, > > > is there some faster way to go to a certain line, rather than > > M-x goto-line ? > > Can I specify a line number when I open a file with C-x C-f? > > > THnx > > PAolo > > In my emacs, it is bound to M-g M-g (as well as M-g g). If it isn't > in yours, check what it is bound to with C-h k, and if it's clear (or > you're willing to override it), add this to your .emacs: > > (global-set-key (kbd "M-g M-g") 'goto-line) > > Or perhaps use this binding, which is not to be used by any major > modes, by convention: > (global-set-key (kbd "C-c g") 'goto-line) > > FWIW, you can find out if a function is bound to, if anything, by > bringing up the command's documentation. C-h a for apropos-command, > then "goto-line". Thanks, I'm using emacs 21 packed by Debian, and the M-g M-g key bind is not set. I edited the .emacs file. Greetings PAolo