Make Emacs.app from Homebrew emacs-mac #!/usr/bin/env bash # Script to create Emacs.app that will be placed in Applications folder. # This is cobbled together from two sources. All credit to them, unless it # doesn't work, in which case, errors are my fault: # # (1) https://github.com/railwaycat/homebrew-emacsmacport/blob/master/docs/emacs-start-helpers.md # (2) https://mathiasbynens.be/notes/shell-script-mac-apps # You may need to make the script executable on your machine. In terminal # directory of this script: # $ chmod +x make_emacs_app.sh # (1) create an application that Spotlight will recogize from emacs-mac osacompile -o Emacs.app \ -e "tell application \"Finder\" to open POSIX file \"$(brew --prefix)/opt/emacs-mac/Emacs.app\"" # (2) move to /Applications mv Emacs.app /Applications # NB: To add icons # # 1. Copy Emacs.icns file images from /usr/local/opt/Emacs.app/Contents/Resources # 2. Right-click the Emacs.app file and select “Get Info” # 3. Select the app icon in the top left corner by clicking it once and paste