Skip to content
/ EC4M Public

Make emacsclient as the default editor of MacOS

Notifications You must be signed in to change notification settings

slegetank/EC4M

Repository files navigation

emacsclient for MacOS

Make emacsclient the default editor of MacOS.

./3.png

The ideas are got from here: https://east.fm/posts/open-with-emacsclient/index.html, just to make it more convenient.

Use

This may take several seconds:

. ./setup.sh

How (If you want to make it yourself)

  1. Make a file /usr/local/bin/emacsclient and save the following code in it (May need “chmod +x”).
    #!/bin/zsh
    # Start emacsclient and return immediately.
    
    /Applications/Emacs.app/Contents/MacOS/bin/emacsclient -n -c "$@"
        
  2. Make a desktop app with Platypus , use the following settings (according to your own need):
    1. Interface must not be “None” (I don’t know why), so “Progress Bar” is the one. ./1.png
    2. Check the “Accepts dropped items” and click the “Settings” button, then check as below: ./2.png
  3. Make it can open the files same with Emacs self, use this script; Then copy it to /Applications.
    python copyDocTypes.py
        
  4. Use the following command to apply the system config:
"/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister" -lint -kill -r -domain local -domain system -domain user

About

Make emacsclient as the default editor of MacOS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published