Emacs: Display battery mode

master
Pierre Neidhardt 2017-06-19 20:32:54 +01:00
parent 868ce31150
commit 4f0cd7b95c
1 changed files with 8 additions and 3 deletions

View File

@ -56,6 +56,14 @@
;;; Print buffer size in mode line.
(size-indication-mode 1)
;;; Display defun in mode line.
(which-function-mode)
;;; Display battery status in mode line
(display-battery-mode)
;;; TODO: Battery status (%b) does not work properly.
(setq battery-mode-line-format "[%p%%%b %t]")
;;; Kill whole line including \n.
(setq kill-whole-line t)
@ -256,9 +264,6 @@
;;; That binding is not very useful and gets in the way of C-<mouse-1>.
(global-unset-key (kbd "C-<down-mouse-1>"))
;;; Display defun in mode line.
(which-function-mode)
;;; Scroll zooming.
(define-keys mickey-minor-mode-map
"C-<wheel-down>" 'text-scale-decrease