[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Column-number-mode ordinality question
From: |
Andreas Politz |
Subject: |
Re: Column-number-mode ordinality question |
Date: |
Tue, 04 May 2010 15:44:37 -0000 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1.90 (gnu/linux) |
Smith_RS <rsmithpv@gmail.com> writes:
> I know that historically RMS was against this, but is there any way in
> 23.1 to change the behavior of column-number-mode so that it begins
> with 1 and not 0?
>
> Under Linux I can just change the code in xdisp.c, but I'm doing more
> work with Windows these days.
>
> Thanks.
I suppose, you could change the
(propertize ... "(%l,%c)" parts in
`mode-line-position' to something like
...
(column-number-mode
(10 (:eval
(propertize
(format " (%l,%d)" (1+ (current-column)))
'local-map mode-line-column-line-number-mode-map
'mouse-face 'mode-line-highlight
'help-echo "Line number and Column number\n\
mouse-1: Display Line and Column Mode Menu")))
...
-ap