Skip to content

Instantly share code, notes, and snippets.

@mtungusov
Created January 22, 2024 20:44
Show Gist options
  • Select an option

  • Save mtungusov/2092ce17e99b5196bdddc322cf285aa2 to your computer and use it in GitHub Desktop.

Select an option

Save mtungusov/2092ce17e99b5196bdddc322cf285aa2 to your computer and use it in GitHub Desktop.
emacs-nw
#!/bin/sh
orig=`readlink $0`
: ${orig:=$0} # Otherwise you can't run it directly
${orig%/*}/Emacs -nw "$@"
# Use this file as a symlink target to easily create a "terminal only" emacs:
# ln -s /Applications/Emacs.app/Contents/MacOS/emacs-nw /usr/local/bin/emacs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment