switch-to-buffer-obey-display-actions t
;; disable new mail mode line indication
display-time-mail-function #'ignore
+ display-time-24hr-format t
;; enable recursive minibuffers
enable-recursive-minibuffers t
bug-reference-url-format "https://debbugs.gnu.org/%s"
(defvar esy/mode-line-format
'(" %+ "
mode-line-buffer-identification
- " (%[" mode-name minor-mode-alist "%])"
+ " (%[" mode-name mode-line-process minor-mode-alist "%])"
(vc-mode vc-mode)
- mode-line-process
mode-line-format-right-align
"%l:%c "
(-3 "%p")
" "
- (:eval (concat "€~" (number-to-string (cdar esy/eur-to-ils-rates)) "₪ "))
+ (:eval (when (mode-line-window-selected-p)
+ (let* ((last-rate (cdar esy/eur-to-ils-rates))
+ (prev-rate (cdadr esy/eur-to-ils-rates))
+ (face-arrw (cond
+ ((< prev-rate last-rate) '("↑" . 'error))
+ ((< last-rate prev-rate) '("↓" . 'success))
+ (t '("→" . 'warning))))
+ (arrw (car face-arrw))
+ (face (cdr face-arrw)))
+ (propertize (concat "€" arrw (number-to-string last-rate) "₪ ") 'face face))))
display-time-string battery-mode-line-string))
(add-hook 'after-init-hook