[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Cygwin emacs - does it work?

From: Angelo Graziosi
Subject: Re: Cygwin emacs - does it work?
Date: Tue, 05 Aug 2008 23:26:48 +0200
User-agent: Thunderbird (Windows/20080708)

Lennart Borgman (gmail) ha scritto:

Eric Hanchrow wrote:
I think you need to set an environment variable before starting Cygwin
-- "set CYGWIN=tty" might do it.

That is frustrating too ;-)

In general though, I've found Cygwin emacs to be too frustrating to use;
I instead use the native Win32 emacs, but with lots of Cygwin tools such
as bash, coreutils, and find.

Why 'frustrating'?

I start the GTK build of Emacs trunk (and the X server if needs) with a link on the Desktop.

The target of the link is:

C:\cygwin\bin\run.exe bash -l start_emacs-X.sh


$ $ cat /usr/local/bin/start_emacs-X.sh

#export DISPLAY=
export DISPLAY=:0

#export PATH=/usr/X11R6/bin:"$PATH"
# export XAPPLRESDIR=/usr/X11R6/lib/X11/app-defaults
# export XCMSDB=/usr/X11R6/lib/X11/Xcms.txt
# export XKEYSYMDB=/usr/X11R6/lib/X11/XKeysymDB
# export XNLSPATH=/usr/X11R6/lib/X11/locale

## --------------------------------------------------------

    # Cleanup from last run.
    rm -rf /tmp/.X11-unix

    XWin -multiwindow -clipboard -silent-dup-error +bs &

/usr/bin/checkX || start_XWin

## --------------------------------------------------------

## Workaround to use GTK build of Emacs
export G_SLICE=always-malloc

exec /usr/local/bin/emacs


The link can be created automatically running:

## Emacs
mkshortcut -A \
    -n Emacs \
    -D /usr/bin/run.exe \
    -a 'bash -l start_emacs-X.sh' \
    -i /usr/local/bin/emacs.ico \
    -d "Editor di testo" \
    -w ''


Tu proverai si' come sa di sale
lo pane altrui, e come e' duro calle
lo scendere e 'l salir per l'altrui scale.
                  DANTE, Paradiso, xvii 58-60

reply via email to

[Prev in Thread] Current Thread [Next in Thread]