From e466611f681f85fd1e3f34be0a7fe9d528026282 Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Tue, 4 Dec 2018 21:09:16 +0800 Subject: [PATCH] Update formats of buffer-encoding. --- doom-modeline.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doom-modeline.el b/doom-modeline.el index a006a81..f81f59a 100644 --- a/doom-modeline.el +++ b/doom-modeline.el @@ -801,14 +801,14 @@ directory, the file name, and its state (modified, read-only or non-existent)." (doom-modeline-def-segment buffer-encoding "Displays the encoding and eol style of the buffer the same way Atom does." (concat (pcase (coding-system-eol-type buffer-file-coding-system) - (0 "LF ") - (1 "CRLF ") - (2 "CR ")) + (0 " LF ") + (1 " RLF ") + (2 " CR ")) (let ((sys (coding-system-plist buffer-file-coding-system))) (cond ((memq (plist-get sys :category) '(coding-category-undecided coding-category-utf-8)) - "UTF-8") + " UTF-8 ") (t (upcase (symbol-name (plist-get sys :name)))))) - " ")) + " ")) ;;