diff options
author | bd <bdunahu@operationnull.com> | 2024-07-10 01:41:01 -0600 |
---|---|---|
committer | bd <bdunahu@operationnull.com> | 2024-07-10 01:41:01 -0600 |
commit | 66d19db226f5ec46871d382b4b70d9576c6afbc4 (patch) | |
tree | 36662aef40ab5c456807dfab93d4dfed1a3394f6 /.config/emacs/modules/bd--modeline.el | |
parent | d1b3440d38a3bea44b8f0e8c63cd3cf2ec0a22d8 (diff) |
hide dwm-status bar by default, add time back to emacs modeline
Diffstat (limited to '.config/emacs/modules/bd--modeline.el')
-rw-r--r-- | .config/emacs/modules/bd--modeline.el | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/.config/emacs/modules/bd--modeline.el b/.config/emacs/modules/bd--modeline.el index 1b0f5ee..39e5088 100644 --- a/.config/emacs/modules/bd--modeline.el +++ b/.config/emacs/modules/bd--modeline.el @@ -5,6 +5,7 @@ ;;; Code: +(require 'time) (defun mode-line-fill (reserve) "Return empty space, leaving RESERVE space on the right." (unless reserve @@ -33,11 +34,17 @@ (global-set-key (kbd "C-c ,") 'minor-mode-blackout-mode) +;;;; time and date +(setq display-time-format "%m/%d/%y %H:%M (%a)" + display-time-default-load-average nil) +(display-time) + (defvar-local bd/time-mode-line '(:eval (when (mode-line-window-selected-p) display-time-string)) "displays current time and date in selected window.") +(display-time) ;;;; buffer name @@ -94,7 +101,7 @@ mode-line-modified bd/vc-mode-line " " - (mode-line-fill 19) + (mode-line-fill 39) bd/line-position " " bd/time-mode-line)) |