Skip to content

Instantly share code, notes, and snippets.

@joelmccracken
Created November 16, 2012 02:56
Show Gist options
  • Save joelmccracken/4083559 to your computer and use it in GitHub Desktop.
Save joelmccracken/4083559 to your computer and use it in GitHub Desktop.
#!/bin/bash
/Applications/Emacs.app/Contents/MacOS/Emacs --debug-init "$@"
;; in my bin home directory
#!/Users/joelmccracken/bin/emacs --batch -l
(message "hullo")
@joelmccracken
Copy link
Author

bash-3.2$ ~/bin/emacs --batch -l start-new-server
~/bin/emacs --batch -l start-new-server
hullo
bash-3.2$ ./start-new-server
./start-new-server
./start-new-server:2: syntax error near unexpected token ;;' ./start-new-server:2:;;#!/Applications/Emacs.app/Contents/MacOS/Emacs --batch -l'

@joelmccracken
Copy link
Author

Sorry, the previous comment was from some unsaved stuff. This below is correct:

bash-3.2$ ~/bin/emacs --batch -l start-new-server
~/bin/emacs --batch -l start-new-server
hullo
bash-3.2$ ./start-new-server
./start-new-server
./start-new-server:3: message: command not found

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