changeset 33:b403402153b5

Add some setup to make emacs easier to use on OS X.
author Augie Fackler <durin42@gmail.com>
date Fri, 09 Jan 2009 11:28:50 -0600
parents dc1c584707e6
children 1c70c9393f45
files .zsh/50.editorsetup.zsh unixSoft/otherbin/emacs.sh
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
new file mode 100644
--- /dev/null
+++ b/.zsh/50.editorsetup.zsh
@@ -0,0 +1,2 @@
+export ALTERNATE_EDITOR=$HOME/unixSoft/otherbin/emacs.sh
+alias e='emacsclient -n'
new file mode 100755
--- /dev/null
+++ b/unixSoft/otherbin/emacs.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+if [ "`uname`" = "Darwin" ] ; then
+    open -a emacs "$@"
+else
+    emacs -nw "$@"
+fi