Last active
May 9, 2016 21:28
-
-
Save 4d47/9bdcdd621519944240c470fd49894ba9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(setq-default | |
mode-line-format '("%e %b ܃ " | |
(:eval | |
(if (use-region-p) | |
(if (eq (point) (region-beginning)) | |
(format "%%l … %d" (line-number-at-pos (region-end))) | |
(format "%d … %%l" (line-number-at-pos (region-beginning)))) | |
"%l")) | |
(:eval | |
;; TODO: on click `set-buffer-file-coding-system' | |
(if (not (member buffer-file-coding-system | |
'(utf-8 utf-8-unix))) | |
(symbol-name buffer-file-coding-system))) | |
mode-line-misc-info)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment