all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#4274: 23.1.50; Suggestion: add a option so line number start counting at 0
@ 2009-08-27  9:33 Xah Lee
  2012-03-05 20:33 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Xah Lee @ 2009-08-27  9:33 UTC (permalink / raw)
  To: emacs-pretest-bug

request for linum-mode a option to start counting at 0.

Rationale:
in some editor, for example the one inside Second Life, the line number 
start at 0. So, i say “look at the vector on line 14”, but to her, it's the 
vector on line 13.

providing a option to change this would help. For example, in xlsl-mode, 
which is a mode for LSL (Linden Scripting Lang), the mode can automatically 
set to have linum-mode start counting at 0, so it's compatible with the 
Second Life world.

  Xah
∑ http://xahlee.org/^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#4274: 23.1.50; Suggestion: add a option so line number start counting at 0
  2009-08-27  9:33 bug#4274: 23.1.50; Suggestion: add a option so line number start counting at 0 Xah Lee
@ 2012-03-05 20:33 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2012-03-05 20:33 UTC (permalink / raw)
  To: 4274-done

"Xah Lee" wrote:

> request for linum-mode a option to start counting at 0.

(setq linum-format (lambda (line) (propertize
                                     (number-to-string (1- line))
                                     'face 'linum)))





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-03-05 20:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-27  9:33 bug#4274: 23.1.50; Suggestion: add a option so line number start counting at 0 Xah Lee
2012-03-05 20:33 ` Glenn Morris

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.