diff options
Diffstat (limited to '.config/emacs/modules/bd--modeline.el')
-rw-r--r-- | .config/emacs/modules/bd--modeline.el | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/.config/emacs/modules/bd--modeline.el b/.config/emacs/modules/bd--modeline.el index 0b142d6..382944e 100644 --- a/.config/emacs/modules/bd--modeline.el +++ b/.config/emacs/modules/bd--modeline.el @@ -28,20 +28,6 @@ '(:eval (format "%s " (propertize (buffer-name) 'face 'bd/underline-shadow))) "Formats the modeline-buffer-name.") -(defvar-local bd/modeline-buffer-file-state-icon - '(:eval - (cond (buffer-read-only - (propertize " L " 'face `(:foreground ,(ef-themes-get-color-value 'warning)))) - ((and buffer-file-name (buffer-modified-p)) - (propertize " S " 'face `(:foreground ,(ef-themes-get-color-value 'warning)))) - ((and buffer-file-name - ;; Avoid freezing while connection is lost - (not (file-remote-p buffer-file-name)) - (not (file-exists-p buffer-file-name))) - (propertize " ? " 'face `(:foreground ,(ef-themes-get-color-value 'err)))) - (t ""))) - "Formats the file modification status.") - ;;;; pos (column-number-mode) (setopt mode-line-position-column-line-format '(" %l:%c ")) @@ -74,7 +60,7 @@ mode-line-front-space bd/buffer-identification-mode-line mode-line-modes - bd/modeline-buffer-file-state-icon + mode-line-modified bd/vc-mode-line bd/line-position)) |