StokeBloke.com

My emacs startup script for cygwin

This is my emacs script for cygwin. It runs the Windows Emacs version and runs just 1 instance of emacs in most cases.

Typing emacs on its own simply starts a new version of emacs.

Type emacs and a file will try to open the document in a running version if its started else it will start emacs.

#!/bin/bash

if [ -z $1 ]
then
    d:/apps/emacs-22.2/bin/emacs.exe
else
    d:/apps/emacs-22.2/bin/emacsclient.exe -n \
    -a d:/apps/emacs-22.2/bin/emacs.exe $@ \
    >/dev/null 2>&1
fi

One Response to “My emacs startup script for cygwin”

  1. organizer Says:

    It works! Thank you.

Leave a Reply