From a8fed34329cfb2f3095c300d1e910008d7a7b2b1 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Tue, 20 Apr 2021 09:27:17 +0800 Subject: Display battery and time on the modeline. Now I can use Emacs in the full-screen mode. * battery-conf.el (battery-pmset): (durand-battery-pmset): Override the default so that it also offers temperature information. (battery-mode-line-format): (battery-mode-line-limit): (battery-update-interval): (battery-load-low): (battery-load-critical): Some sane defaults. * init.el (durand-battery): (durand-time): Advice to load the configurations and display at the same time. * time-conf.el (display-time-format): (display-time-interval): (display-time-default-load-average): (display-time-mail-directory): (display-time-mail-function): (display-time-use-mail-icon): (display-time-mail-string): (display-time-mail-face): Sane defaults. --- init.el | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'init.el') diff --git a/init.el b/init.el index 427e708..037df53 100644 --- a/init.el +++ b/init.el @@ -127,6 +127,14 @@ no effect." (define-key global-map (vector 3 99) #'prepare-org) (define-key global-map (vector 3 ?l) #'prepare-org) +;;;###autoload +(load-after-function durand-battery "battery-conf.el" "Display battery information." nil + (display-battery-mode 1)) + +;;;###autoload +(load-after-function durand-time "time-conf.el" "Display time information." nil + (display-time-mode 1)) + ;;;###autoload (load-after-function durand-mu4e "mail.el" "Open mu4e." t (mu4e)) -- cgit v1.2.3-18-g5258