[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Minibuffer tray to display current time and date
From: |
Alexander Shukaev |
Subject: |
Re: Minibuffer tray to display current time and date |
Date: |
Thu, 25 Jun 2015 21:18:16 +0200 |
I've finally managed to tailor a solution that finally works as expected
(and without code duplication):
(setq-default minibuffer-line-format
'((:eval
(let* ((date-string
(propertize (format-time-string "%Y.%m.%d")
'face
'minibuffer-line-date))
(weekday-string
(propertize (format-time-string "%A")
'face
'minibuffer-line-weekday))
(time-string
(propertize (format-time-string "%R")
'face
'minibuffer-line-time))
(right-string-list
(list date-string
" "
weekday-string
" "
time-string))
(right-string
(apply #'concat right-string-list))
(pad-string
(propertize " "
'display
`((space :align-to
(- right
right-fringe
,(length
right-string)))))))
(list pad-string
right-string-list)))))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: Minibuffer tray to display current time and date,
Alexander Shukaev <=