ui/modeline: don't show encoding if UTF-8
It's only important if the encoding is something we don't expect.
This commit is contained in:
parent
a4cd5fafd8
commit
7844115561
1 changed files with 2 additions and 2 deletions
|
@ -503,8 +503,8 @@ Meant for `+modeline-buffer-path-function'."
|
|||
(cond ((eq category 'coding-category-undecided)
|
||||
"")
|
||||
((or (eq category 'coding-category-utf-8)
|
||||
(eq (plist-get sys :name) 'prefer-utf-8))
|
||||
"UTF-8 ")
|
||||
(string-match-p "utf-8" (symbol-name (plist-get sys :name))))
|
||||
"")
|
||||
((concat (upcase (symbol-name (plist-get sys :name)))
|
||||
" ")))
|
||||
'help-echo (plist-get (coding-system-plist buffer-file-coding-system) :docstring)))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue