Powerline shows file encoding

This commit is contained in:
ralesi 2015-06-08 02:27:58 -07:00 committed by syl20bnr
parent f9771fce4e
commit a1da94ee64

View file

@ -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")