I'm used to have display of the number of selected characters in the mode line when there is an active selection (in vim).
Is it possible to achieve this in emacs?
I managed to display the column index besides the line index, which is something... But not quite enough. I also looked at the mode line format documentation, but without success.
I also found smart mode line but I think that it doesn't offer the feature as of now.
(abs (- (point) (mark)))
Also take a look atM-x describe-variable RET mode-line-format RET
.setq-default mode-line-format
however the abs is just not appearing. I tried adding(:eval
and then it shows*invalid*