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

Norman Gray norman at astro.gla.ac.uk
Mon Sep 20 13:40:24 EDT 2010


Jack, hello.

On 2010 Sep 20, at 19:17, Jack Repenning wrote:

> Aquamacs.app is a "Login Item" in my account
> ~/.Aquamacs/Preferences.el includes (server-start)
> export EDITOR="/Applications/Aquamacs.app/Contents/MacOS/bin/emacsclient"
> alias e="open -a /Applications/Aquamacs.app"
[...]
> The alias is used when typing at the command line. It causes the files to be loaded while returning my shell prompt so I can do more stuff in that window. This also ensures that Aquamacs gets restarted, in the relatively rare cases where it's croaked for some reason. The one problem with it is that it's no good at creating a new file: if I "e nonesuch", where "nonesuch" does not already exist, "open" refuses to go further.

An alias of 

alias e="$EDITOR -n"

should do this for you, and will additionally create a new file if necessary.  It won't start up Aquamacs, though -- that has to be done manually, or at login time, as you have.

Best wishes,

Norma


-- 
Norman Gray  :  http://nxg.me.uk




More information about the MacOSX-Emacs mailing list