help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Does emacs have a line numbering feature?


From: Michael Trausch
Subject: Re: Does emacs have a line numbering feature?
Date: Sun, 09 Sep 2007 18:00:20 -0400
User-agent: Thunderbird 2.0.0.6 (X11/20070803)

Tassilo Horn, on 09/09/2007 04:14 PM said:
>>> (setq line-number-mode t)
>>> (setq column-number-mode t)
>> Yeah, I already had that in, and it works.  However, if I do something
>> similar for linum-mode, it seems to just ignore it.
> 
> Yes, because setting a minor mode variable to activate it is the wrong
> thing to do.  It might work sometimes, but generally you should either
> customize the variable or use the minor mode function.  So the code
> above should better be
> 
>   (line-number-mode 1)
>   (column-number-mode 1)
> 
> because by convention a minor mode is turned on if the argument is
> positive.
> 

Okay... I tried that, too, for linum-mode, and it doesn't work.  Am I
missing something obvious or am I an idiot?  :-P

        -- Mike

-- 
Michael B. Trausch                                http://www.trausch.us/
Pidgin 2.1.1 and plugins for Ubuntu Feisty!
(And Thunderbird 2.0.0.6, too!)             http://www.trausch.us/pidgin


reply via email to

[Prev in Thread] Current Thread [Next in Thread]