How can I display file size in MB or KB in the mode line? I have the icon for encoding setting, title of the buffer, etc but have no file size in there.

  • How to you customize your mode-line? Make it clear so that user can know how to add code to your custom mode-line. Feb 23, 2017 at 15:20

2 Answers 2


Sure, just run M-x size-indication-mode. See section 14.18 of the Emacs manual for other things you can do.


Or use mode-line-format %-constructs (%I).


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.