fix(modeline): change macOS default EOL type to LF

It looks like CR was only the default line ending type for Mac in
Mac OS 9 and earlier, and it's now quite uncommon:
- https://retrocomputing.stackexchange.com/a/21906
- https://superuser.com/a/439443
This commit is contained in:
Ajai Nelson
2024-12-02 04:36:11 -05:00
committed by Henrik Lissner
parent ea098dcc1f
commit cc98bdd14b

View File

@ -23,8 +23,7 @@
;; 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
(pcase (car doom-system) ('macos 2) ('windows 1) (_ 0)))
doom-modeline-default-eol-type (if (featurep :system 'windows) 1 0))
:config
;; Fix an issue where these two variables aren't defined in TTY Emacs on MacOS