From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jgombos Newsgroups: gmane.emacs.help Subject: Re: Trying to add a hook to show line numbers Date: Thu, 19 Apr 2007 06:26:25 -0700 (PDT) Message-ID: <10077830.post@talk.nabble.com> References: <10058782.post@talk.nabble.com> <87slaxs7qt.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1176989218 29455 80.91.229.12 (19 Apr 2007 13:26:58 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 Apr 2007 13:26:58 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 19 15:26:49 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 1HeWev-0002Mp-I2 for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Apr 2007 15:26:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HeWjs-0007Mx-3b for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Apr 2007 09:31:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HeWjY-0007I5-Ol for help-gnu-emacs@gnu.org; Thu, 19 Apr 2007 09:31:36 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HeWjW-0007Fd-Vy for Help-gnu-emacs@gnu.org; Thu, 19 Apr 2007 09:31:36 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HeWjW-0007F6-Fz for Help-gnu-emacs@gnu.org; Thu, 19 Apr 2007 09:31:34 -0400 Original-Received: from www.nabble.com ([72.21.53.35] helo=talk.nabble.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HeWeY-000561-Vg for Help-gnu-emacs@gnu.org; Thu, 19 Apr 2007 09:26:27 -0400 Original-Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1HeWeX-0004Ya-9t for Help-gnu-emacs@gnu.org; Thu, 19 Apr 2007 06:26:25 -0700 In-Reply-To: <87slaxs7qt.fsf@gmail.com> X-Nabble-From: nabble.forum.jog@spamgourmet.com X-detected-kernel: Linux 2.4-2.6 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:42820 Archived-At: Sean Sieger wrote: > > Each of these has too many closing parentheses. > Thanks for the catch, but I believe that may have just been a typo in my post. Anyway, I just tried it again, and discovered that the hook works, and probably worked before, but there's some kind of flaw that causes the line numbers not to appear until I refresh the window. So if I hit C-L, or move the cursor, the line numbers appear. BTW, I believe this is the correct command for me to have in the .emacs file: (add-hook 'ada-mode-hook 'linum) -- View this message in context: http://www.nabble.com/Trying-to-add-a-hook-to-show-line-numbers-tf3601014.html#a10077830 Sent from the Emacs - Help mailing list archive at Nabble.com.