all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tassilo@member.fsf.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Does emacs have a line numbering feature?
Date: Sun, 09 Sep 2007 22:14:47 +0200	[thread overview]
Message-ID: <87642jtx3c.fsf@baldur.tsdh.de> (raw)
In-Reply-To: 9OudnSM4Oupbh3nbnZ2dnUVZ_s3inZ2d@comcast.com

Michael Trausch <"mike|s/\x40/\./g;s/|.*|/\x40/g;|trausch"@us> writes:

Hi Michael,

>> (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.

Bye,
Tassilo
-- 
Chuck  Norris  was  banned  from  competitive bullriding  after  a  1992
exhibition in San Antonio, when he  rode the bull 1,346 miles from Texas
to Milwaukee Wisconsin to pick up his dry cleaning.

  reply	other threads:[~2007-09-09 20:14 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.456.1189180395.18990.help-gnu-emacs@gnu.org>
2007-09-09  7:24 ` Does emacs have a line numbering feature? Unknown
2007-09-09 11:06   ` saint
     [not found]   ` <mailman.561.1189336001.18990.help-gnu-emacs@gnu.org>
2007-09-09 16:09     ` Unknown
2007-09-09 20:14       ` Tassilo Horn [this message]
2007-09-09 22:00         ` Unknown
2007-09-09 22:58           ` Drew Adams
2007-09-10  3:11             ` brianjiang
     [not found] <mailman.454.1189179783.18990.help-gnu-emacs@gnu.org>
2007-09-07 20:44 ` Tassilo Horn
2007-09-12  8:56 ` Andrew Russell
     [not found] <mailman.608.1189394026.18990.help-gnu-emacs@gnu.org>
2007-09-10  4:24 ` Markus Triska
     [not found] <mailman.597.1189378773.18990.help-gnu-emacs@gnu.org>
2007-09-09 23:31 ` Unknown
2007-09-10  1:41   ` David Kastrup
2007-09-07 15:42 arguellodw
2007-09-07 15:51 ` Drew Adams
2007-09-08  7:46   ` brianjiang
2007-09-08 14:37     ` Drew Adams
2007-09-08 15:53       ` brianjiang
2007-09-08 20:42         ` Drew Adams
2007-09-07 16:02 ` Michaël Cadilhac

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=87642jtx3c.fsf@baldur.tsdh.de \
    --to=tassilo@member.fsf.org \
    --cc=help-gnu-emacs@gnu.org \
    /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.