Skip to content

Commit

Permalink
ui/modeline: don't show encoding unless nondefault
Browse files Browse the repository at this point in the history
  • Loading branch information
hlissner committed May 17, 2021
1 parent fa8f73d commit 05866ce
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion modules/ui/modeline/config.el
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,14 @@
doom-modeline-persp-name nil
doom-modeline-minor-modes nil
doom-modeline-major-mode-icon nil
doom-modeline-buffer-file-name-style 'relative-from-project)
doom-modeline-buffer-file-name-style 'relative-from-project
;; Only show file encoding if it's non-UTF-8 and different line endings
;; than the current OSes preference
doom-modeline-buffer-encoding 'nondefault
doom-modeline-default-eol-type
(cond (IS-MAC 2)
(IS-WINDOWS 1)
(0)))

;; Fix modeline icons in daemon-spawned graphical frames. We have our own
;; mechanism for disabling all-the-icons, so we don't need doom-modeline to do
Expand Down

0 comments on commit 05866ce

Please sign in to comment.