This is the mail archive of the cygwin 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: shortcut to start xemacs in bash cygwin window


On Sun, 28 Mar 2004, Edwin Goei wrote:

> Igor Pechtchanski wrote:
>
> > On Sun, 28 Mar 2004, David Rothenberger wrote:
> >
> >>Edwin Goei wrote:
> >>
> >>
> >>>I would like to be able to have a Windows shortcut that will do the
> >>>equivalent of the following: 1) run cygwin.bat 2) execute "xemacs &"
> >>>in the cygwin bash window 3) exit the cygwin bash window 4) leaving
> >>>xemacs running.
> >>>
> >>>I would like to start xemacs in this way so I can have my default bash
> >>>enviroment initialized in xemacs.  Any ideas on to do this?
> >>>
> >>
> >>I use the following.
> >>
> >>% cat xemacs.bat
> >>@start /min c:\cygwin\bin\bash --login -c 'cygstart /usr/local/bin/xemacs'
> >>
> >>Of course, you'll need to adjust the paths to match your environment.
> >>Once you make the batch file, you can make a shortcut to it in the usual
> >>way.
> >>
> >>Dave
> >
> > FWIW, you can dispense with the batch file, and simply make a shortcut to
> > "C:\cygwin\bin\bash --login -c 'cygstart /usr/bin/xemacs'"[*].  You can
> > then set the shortcut to start minimized.
> >       Igor
> > [*] I put /usr/bin/xemacs here, since xemacs is now a Cygwin package.
>
> Thanks.  I changed my shortcut and it seems to work, but I noticed that
> the dos window indicates some number of errors from bash, but then
> quickly goes away.  Is there a way for me to keep the window open so I
> can see what the errors are?  I did not have the shortcut set to start
> minimized, here.

Sure.  Just add "; sleep 20" to the bash command above (or "; read a" to
make sure it waits for you to press Enter).

> Also, the last time I tried the xemacs that comes with cygwin, there
> were problems with fonts and so I installed the version from xemacs.org
> instead.
> -Edwin

Well, if you feel like helping Cygwin packages become better, you can
report the exact font problems you've been having to the Cygwin xemacs
maintainer (at whatever the preferred address is, see the announcement),
so that they can be fixed.
	Igor
-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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]