Skip to content

Instantly share code, notes, and snippets.

@caldwell
Last active June 24, 2018 19:46
Show Gist options
  • Save caldwell/5026506 to your computer and use it in GitHub Desktop.
Save caldwell/5026506 to your computer and use it in GitHub Desktop.
I put this in my ~/bin and then `alias emacs='ec'`
#!/bin/sh
which osascript > /dev/null 2>&1 && osascript -e 'tell application "Emacs" to activate'
emacsclient -c "$@"
@caldwell
Copy link
Author

@house9: Looks like you're running /usr/bin/emacsclient which is the one shipped by Apple and is really old. You need to run the emacsclient that comes with Emacs (Emacs.app/Contents/MacOS/bin/emacsclient).

@unknownzerx
Copy link

I've got a joke

alias emcas=emacs
alias emasc=emacs

Copy link

ghost commented Jun 24, 2018

FYI, re: "emacsclient -c ..."

-c is not a valid option on the emacsclient shipped in the DMG.

See https://gist.github.com/caldwell/5026506#gistcomment-941485, above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment