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)