diff options
author | JSDurand <mmemmew@gmail.com> | 2021-04-20 09:27:17 +0800 |
---|---|---|
committer | JSDurand <mmemmew@gmail.com> | 2021-04-20 09:27:17 +0800 |
commit | a8fed34329cfb2f3095c300d1e910008d7a7b2b1 (patch) | |
tree | f6940b0ff43b4547e36826ffb37f25e38b2b3c61 /init.el | |
parent | d5c1b16c18bd78fe33def35cdbfcda30ca07a0a1 (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.el | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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) |