This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Win32 emacs, Cygwin emacs...and PATH


Eric Hanchrow wrote:

| >>>>> "Elfyn" == Elfyn McBratney <elfyn-cygwin@exposure.org.uk> writes:
|
|     >> I want to be able to type "emacs" and have it run my Win32
|     >> emacs.
|
| Put this in your .bashrc:
|
| function emacs ()
| {
|         /c/path-to/win32-emacs/emacs.exe "$@"
| }

Or

  alias emacs=/c/path-to/win32-emacs/emacs.exe

so that you can invoke Cygwin Emacs when you need it using "\emacs".  Or
call the function something else; or invoke Cygwin Emacs using
"/bin/emacs".

Or, if you don't use Cygwin Emacs, just uninstall it - then "emacs" will
pick up your Win32 Emacs without changing .bashrc.

Iain Tuddenham.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]