summaryrefslogtreecommitdiff
path: root/emacs/site-lisp/modeline-config.el
diff options
context:
space:
mode:
authorTCCQ <thomasmulmer02@gmail.com>2025-04-09 19:53:47 -0700
committerTCCQ <thomasmulmer02@gmail.com>2025-04-09 19:53:47 -0700
commitaacd40d6adbf9bfb510e40b7ddb93678e7cecbcd (patch)
tree4efb7ef976d7e6fd1a9c72647f2b40cf6b804565 /emacs/site-lisp/modeline-config.el
parent729e4d189c2d25a551a77a77276c75f42fbc4faa (diff)
emacs to add single top header and move some (global) info there
Diffstat (limited to 'emacs/site-lisp/modeline-config.el')
-rw-r--r--emacs/site-lisp/modeline-config.el30
1 files changed, 3 insertions, 27 deletions
diff --git a/emacs/site-lisp/modeline-config.el b/emacs/site-lisp/modeline-config.el
index b74a15d..5b1f7e5 100644
--- a/emacs/site-lisp/modeline-config.el
+++ b/emacs/site-lisp/modeline-config.el
@@ -2,9 +2,6 @@
(provide 'modeline-config)
-;; (require 'battery)
-;; (display-battery-mode 1)
-
(use-package doom-modeline
:init
(doom-modeline-mode 1))
@@ -14,30 +11,9 @@
:custom
(minions-prominent-modes '(persp-mode auto-fill-mode eldoc-mode eglot-mode lsp-mode)))
-(require 'time)
-(setq display-time-day-and-date t)
-;; Set up the time timer.
-(defun enable-display-time-backend ()
- "Do the internal bit of `display-time-mode` but without adding it to the
-global mode string"
- (and display-time-timer (cancel-timer display-time-timer))
- (setq display-time-timer nil)
- (setq display-time-string "")
- (setq display-time-load-average display-time-default-load-average)
- (progn
- ;; (or (memq 'display-time-string global-mode-string)
- ;; (setq global-mode-string
- ;; (append global-mode-string '(display-time-string))))
- ;; Set up the time timer.
- (setq display-time-timer
- (run-at-time t display-time-interval
- 'display-time-event-handler))
- ;; Make the time appear right away.
- (display-time-update)))
-
-;; (enable-display-time-backend)
-(display-time-mode 1)
-;; there is more in the single-header file
+(setq-default global-mode-string '("" (:eval (concat (with-face (format " [%s] " (shorten-path default-directory))
+ :weight 'bold
+ :foreground "green2")))))
;; -----------------------------------------------------------------------------
;; telephone line stuff