向大家汇报,我找到解决办法了。
首先,该解决办法是针对我安装的 emacs-plus 版本。其次,之前论坛里帖子里提到的,将 usr/bin/ruby 添加到「完全磁盘访问权限」的做法,是针对 EmacsforMacOSX 的。
我现在的解决方法如下,可以在 emacs-plus 的 issue 列表里找到。
其实和 3 楼 EthanLin 的方法是一样的,但没有 update the path 那一步(主要是我不懂 update the path 是什么操作)。
楼上 aqua0210 建议安装的 exec-path-from-shell,我安装了,同时也写入了配置,但不成功。
正解在这里:
Turned out this line in my config broke it, due to macos built in ls
doesn’t support --group-directories-first
flag
(setq dired-listing-switches "-al --group-directories-first")
Solution:
brew install coreutils
Then in your init.el, add
(setq insert-directory-program "gls" dired-use-ls-dired t)
(setq dired-listing-switches "-al --group-directories-first")