From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: jgombos Newsgroups: gmane.emacs.help Subject: Trying to add a hook to show line numbers Date: Wed, 18 Apr 2007 06:35:42 -0700 (PDT) Message-ID: <10058782.post@talk.nabble.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 1176929539 4100 80.91.229.12 (18 Apr 2007 20:52:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 18 Apr 2007 20:52:19 +0000 (UTC) To: Help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Apr 18 22:52:12 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 1HeH8N-0003Sc-Nr for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Apr 2007 22:52:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HeHDF-0006m3-Hi for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Apr 2007 16:57:13 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HeAOr-00068V-H7 for help-gnu-emacs@gnu.org; Wed, 18 Apr 2007 09:40:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HeAOq-00065w-6V for Help-gnu-emacs@gnu.org; Wed, 18 Apr 2007 09:40:44 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HeAOq-00065g-0U for Help-gnu-emacs@gnu.org; Wed, 18 Apr 2007 09:40:44 -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 1HeAJz-0000VS-Fi for Help-gnu-emacs@gnu.org; Wed, 18 Apr 2007 09:35:43 -0400 Original-Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1HeAJy-0002To-Hx for Help-gnu-emacs@gnu.org; Wed, 18 Apr 2007 06:35:42 -0700 X-Nabble-From: nabble.forum.jog@spamgourmet.com X-detected-kernel: Linux 2.4-2.6 X-Mailman-Approved-At: Wed, 18 Apr 2007 16:56:27 -0400 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:42805 Archived-At: I have successfully installed the linum.el library, and have the following code in .emacs: (require 'linum) So in order to see line numbers, I interactively enter "M-x linum". The same command removes line numbers when applied again (it's a toggle). I want the default action to be to show line numbers. I've tried this hook: (setq ada-mode-hook 'lambda () 'linum)) That was just a guess at how the hook should be composed. It didn't work. I also tried: (setq ada-mode-hook 'lambda () linum)) ..and.. (setq ada-mode-hook 'lambda () (linum))) ..and.. (setq ada-mode-hook 'linum)) There are never any errors, but the hooks simply do not trigger. -- View this message in context: http://www.nabble.com/Trying-to-add-a-hook-to-show-line-numbers-tf3601014.html#a10058782 Sent from the Emacs - Help mailing list archive at Nabble.com.