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

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

Re: Adding total lines to modeline (NOT percentage)?


From: Scott Frazer
Subject: Re: Adding total lines to modeline (NOT percentage)?
Date: Thu, 14 Apr 2011 14:10:13 -0400
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9

On 4/13/11 3:11 PM, fork wrote:
Is there a way to customize my modeline such that I can see the total number of
lines of the current file?

The percentage is not particularly interesting to me...

Thanks!


I use these forms in my `mode-line-format' variable to show 
"current_line/total_num_lines":

(list 'line-number-mode "  L%l/")
(list 'line-number-mode (:eval (int-to-string (count-lines (point-min) 
(point-max)))))



reply via email to

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