(with-eval-after-load 'whitespace-cleanup-mode
(setf (alist-get 'whitespace-cleanup-mode minor-mode-alist) '("")))
+(with-eval-after-load 'outline
+ (setf (alist-get 'outline-minor-mode minor-mode-alist) '("")))
+
;;; Track currency exchange rates
(defvar esy/eur-to-ils-rates nil)
(defvar esy/mode-line-format
'(" %+ "
mode-line-buffer-identification
- " (%[" mode-name mode-line-process minor-mode-alist "%])"
+ " (%[" mode-name mode-line-process minor-mode-alist "%n%])"
(vc-mode vc-mode)
mode-line-format-right-align
- "%l:%c "
- (-3 "%p")
- " "
(: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))
+ (list
+ (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)))
+ "%5l"
+ (4 "|%c")
+ " "
+ (-3 "%p")
+ "/%I "))
(add-hook 'after-init-hook
(lambda ()