battery-status-function

battery-status-function is a variable defined in `battery.el'.
Its value is
battery-linux-sysfs

  • This variable may be risky if used as a file-local variable.

Documentation:
Function for getting battery status information.
The function has to return an alist of conversion definitions.
Its cons cells are of the form

(CONVERSION . REPLACEMENT-TEXT)

CONVERSION is the character code of a "conversion specification"
introduced by a `%' character in a control string.

You can customize this variable.