Powerline shows file encoding
This commit is contained in:
parent
f9771fce4e
commit
a1da94ee64
|
@ -2452,6 +2452,13 @@ It is a string holding:
|
|||
(list
|
||||
;; row:column
|
||||
(powerline-raw " " face1)
|
||||
;; buffer encoding
|
||||
(powerline-raw (format "%s |" (let ((buf-coding (format "%s" buffer-file-coding-system)))
|
||||
(if (string-match "\\(dos\\|unix\\|mac\\)" buf-coding)
|
||||
(match-string 1 buf-coding)
|
||||
buf-coding
|
||||
)))
|
||||
face1 'r)
|
||||
(powerline-raw (if spacemacs-mode-line-display-point-p
|
||||
(concat (format "%d | " (point)) "%l:%2c" )
|
||||
"%l:%2c")
|
||||
|
|
Loading…
Reference in a new issue