macOS: Open files and folders with Emacs
Use Emacs to open files/folders when in Finder The first day I joined Hootsuite over a year ago, I received my work laptop; and it was a Macbook - my first ever. Naturally, as an Emacs user I needed to integrate macOS with Emacs! I wanted to be able to open files and folders in Emacs with just a keyboard shortcut. It took me some research and getting familiar with the new OS and what it offers. The result was, in macOS jargon, a "service" which I bound to command-\ . To use it, create a "Quick Action" with "automator", add a "Run Applescript" node to your workflow, copy-paste the code below and save it. You can add a keyboard shortcut to it later on, from the keyboard preferences. -- launch emacsclient in a new frame -- -- if the active application is Finder -- open the selected item(s) in a buffer(s) -- or if nothing is selected open the current directory. -- if the active application is NOT Finder -- simply create a new fra...