3

I don't know how to display in the mode line a character count for the line I'm currently editing.

I tried searching on Google, but nothing came up, only for the whole document or for a selection. I wanted it to count on its own without need for a manual selection.

Does anyone know how to do it?

1 Answer 1

3

Here's one simple way:

(setq global-mode-string '(:eval (format "%d chars" (- (line-end-position) (line-beginning-position))))) 

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.