Cygwin tips:Native emacs
From WikiHistedOrg
[edit] How to use the Windows native emacs on cygwin
I use this script as /usr/bin/emacs:
#!/bin/sh
#$Id$
# get Windows path of user's home directory
HOME=`/usr/bin/cygpath -a -w ~`
if [ $# -gt 0 ]; then
# convert cygwin path to Windows path
winname=`/usr/bin/cygpath -a -w $*`
/usr/bin/run /cygdrive/c/emacs-21.3/bin/runemacs.exe "$winname"
else
/usr/bin/run /cygdrive/c/emacs-21.3/bin/runemacs.exe
fi
Then my .emacs has the following
;; Windows specific details
(if (getenv "COMSPEC")
(set-default-font "-outline-MiscFixedSC613-normal-r-normal-normal-12-90-96-96-c-60-iso10646-1")
(load-library "python-mode")
(setq auto-mode-alist
(cons '("\\.py$" . python-mode) auto-mode-alist))
(add-to-list 'load-path
"c:/program files/matlab71/java/extern/emacslink/lisp")
)

