expand emacs configuration

make a fresh Ubuntu 14.04 LTS installation usable
battery.pl: fix undefined $temp in short mode