mirror of
https://github.com/doomemacs/doomemacs.git
synced 2025-12-06 10:31:23 -08: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:
parent
ea098dcc1f
commit
cc98bdd14b
1 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue