-
Notifications
You must be signed in to change notification settings - Fork 0
/
samontea-mode-line.el
30 lines (26 loc) · 963 Bytes
/
samontea-mode-line.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
(defun samontea/configure-mode-line ()
"Set mode-line-format to a custom value."
(setq-default mode-line-format
'("%e"
mode-line-mule-info
mode-line-client
"<%*%+>"
"%@"
mode-line-frame-identification
(#("%16b" 0 4 (local-map mode-line-highlight face mode-line-buffer-id)))
" "
"(%l,%c)"
" "
(vc-mode vc-mode)
" "
mode-line-misc-info)))
;; Enable the mode line config
(samontea/configure-mode-line)
;; Modeline battery notifier config & enabling
(setf battery-mode-line-format "[%b%p%%, %t] ")
(display-battery-mode)
;; Modeline clock config & enabling
(setf display-time-format "{%Y-%m-%d, %H:%M}")
(setf display-time-default-load-average nil)
(display-time-mode)
(provide 'samontea-mode-line)