Fix M1 Mac Emacs Listing Directory Failed

By Xah Lee. Date: .

Listing directory failed but ‘access-file’ worked

if you get the error

Listing directory failed but ‘access-file’ worked

and if you downloaded emacs emacsformacosx.com, and you are on Apple M1 chip Mac, do this:

cd /Applications/Emacs.app/Contents/MacOS/
mv Emacs Emacs.orig
mv Emacs.pdmp Emacs.orig.pdmp
ln Emacs-arm64-12 Emacs
ln Emacs-arm64-12.pdmp Emacs.pdmp

Configure Emacs to Start on Mac