mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
committed by
Henrik Lissner
parent
ea098dcc1f
commit
cc98bdd14b
@ -23,8 +23,7 @@
|
|||||||
;; Only show file encoding if it's non-UTF-8 and different line endings
|
;; Only show file encoding if it's non-UTF-8 and different line endings
|
||||||
;; than the current OSes preference
|
;; than the current OSes preference
|
||||||
doom-modeline-buffer-encoding 'nondefault
|
doom-modeline-buffer-encoding 'nondefault
|
||||||
doom-modeline-default-eol-type
|
doom-modeline-default-eol-type (if (featurep :system 'windows) 1 0))
|
||||||
(pcase (car doom-system) ('macos 2) ('windows 1) (_ 0)))
|
|
||||||
|
|
||||||
:config
|
:config
|
||||||
;; Fix an issue where these two variables aren't defined in TTY Emacs on MacOS
|
;; Fix an issue where these two variables aren't defined in TTY Emacs on MacOS
|
||||||
|
Reference in New Issue
Block a user