On Mac OSX, I'm editing a file in an Emacs buffer. I need to conveniently open the directory containing this file in the MAC OSX Finder. What's the best way to do this?
1 Answer
My way wasn't shown in the other thread: M-! open . RET
.
open
is a general OS X command which will cause the system to open a file or directory in the default application. .
is the current directory.
I don't do this very often, so I find it faster to type the above incantation than to write a function and map it somewhere. M-x open-in-finder
would take more characters than above.
reveal-in-finder
uses the namefinder
without qualification (in the library name and in the code).finder.el
is a longstanding, standard Emacs library, and its commands, functions and variables use the namefinder
to mean something quite different from the "MAC OS X Finder". I wish that thereveal-in-finder
maintainer would consider using a name and name component such asmacosx-finder
orosx-finder
, instead of justfinder
.