From 93d9264eec3366a01c6f1d89b556379525bd9017 Mon Sep 17 00:00:00 2001 From: Deepak Antony Date: Thu, 6 Mar 2014 15:36:46 -0800 Subject: [PATCH] Updated readme --- README | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README b/README index f659e89..dbcc57a 100644 --- a/README +++ b/README @@ -14,9 +14,15 @@ Here is a sample run in cygwin: $ which emacs /usr/bin/emacs $ mv /usr/bin/emacs /usr/bin/emacs.old -$ vi /usr/bin/emacs # this is too simplistic; use a script similar to the one used for mac as shown below. +$ vi /usr/bin/emacs # this one works only in cygwin #!/bin/bash -/cygdrive/c/emacs-24.1/bin/emacs.exe $1 +if [ $# -gt 0 ] +then + /cygdrive/c/emacs-24.2/bin/emacs "$(cygpath -w $1)" +else + /cygdrive/c/emacs-24.2/bin/emacs +fi + $ chmod +x /usr/bin/emacs In mac, the edit on the /usr/bin/emacs would look like this (I think this is best for other OS's too).