[OS X Emacs] Aquamacs / aquamacs cmd line / emacsclient

Jack Repenning jrepenning at collab.net
Mon Sep 20 15:11:53 EDT 2010


On Sep 20, 2010, at 10:40 AM, Norman Gray wrote:

> alias e="$EDITOR -n"
> 
> should do this for you, and will additionally create a new file if necessary.

Bless you, sir, that's near perfect!

I'm actually now using:

  e () {
      "$EDITOR" -n "$@" || {
	  echo >&2 "Oops, that didn't work, let's try this:"
	  open -a /Applications/Aquamacs.app "$@"
      }
  }

.. which handles all cases well, except for a blather of messages in the (infrequent) case where Aquamacs needs a restart.





More information about the MacOSX-Emacs mailing list