summaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2021-04-20 09:27:17 +0800
committerJSDurand <mmemmew@gmail.com>2021-04-20 09:27:17 +0800
commita8fed34329cfb2f3095c300d1e910008d7a7b2b1 (patch)
treef6940b0ff43b4547e36826ffb37f25e38b2b3c61 /init.el
parentd5c1b16c18bd78fe33def35cdbfcda30ca07a0a1 (diff)
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.
Diffstat (limited to 'init.el')
-rw-r--r--init.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/init.el b/init.el
index 427e708..037df53 100644
--- a/init.el
+++ b/init.el
@@ -128,6 +128,14 @@ no effect."
(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))
(define-key global-map (vector 3 109) #'durand-mu4e)