From b3caed783ad5fc9b5bcf54fca22cf36ff076deff Mon Sep 17 00:00:00 2001 From: lixulun Date: Wed, 26 Aug 2026 11:23:49 +0800 Subject: [PATCH] modify ls params only on linux --- init.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/init.el b/init.el index 89647c4..fbd74bf 100644 --- a/init.el +++ b/init.el @@ -42,7 +42,9 @@ (add-hook 'before-save-hook 'delete-trailing-whitespace) ; 保存时清除行尾空格 -(setq dired-listing-switches "-ahl --group-directories-first") ;; 设置 Dired 默认传递给 ls 的参数 +(when (memq system-type '(gnu gnu/linux)) + (setq dired-listing-switches "-ahl --group-directories-first")) ;; 设置 Dired 默认传递给 ls 的参数 + (setq mac-command-modifier 'meta)