2

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?

2
  • 3
    From SO: in Emacs, how to show current file in Finder? Feb 10, 2015 at 22:03
  • It's really unfortunate that reveal-in-finder uses the name finder 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 name finder to mean something quite different from the "MAC OS X Finder". I wish that the reveal-in-finder maintainer would consider using a name and name component such as macosx-finder or osx-finder, instead of just finder.
    – Drew
    Feb 11, 2015 at 0:43

1 Answer 1

10

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.