From cc98bdd14bfcf3042f6e5e23e95e5ee72d58eec7 Mon Sep 17 00:00:00 2001 From: Ajai Nelson <22969541+AjaiKN@users.noreply.github.com> Date: Mon, 2 Dec 2024 04:36:11 -0500 Subject: [PATCH] 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 --- modules/ui/modeline/config.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/ui/modeline/config.el b/modules/ui/modeline/config.el index 0b52c489d..38a5a339b 100644 --- a/modules/ui/modeline/config.el +++ b/modules/ui/modeline/config.el @@ -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