Skip to content
/ em Public

A Linux (C-shell) wrapper script for launching Emacs/emacsclient/XEmacs/gnuclient

License

Notifications You must be signed in to change notification settings

blutsvente/em

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

em.csh

A Linux (C-shell) wrapper script for launching XEmacs/gnuclient

Starts either XEmacs (on current host) or gnuclient, depending on whether there is already an XEmacs process; this is determined by looking for the process or a tag file (.gnuhost) in user's home directory. With -n option, starts a new XEmacs process, skipping the gnuclient functionality.

.cshrc setup: gnuclient requires GNU_SECURE to be set. I recommend the following your .cshrc file:

setenv GNU_SECURE $HOME/.gnu_secure_file
if ( ! -e $GNU_SECURE ) then
  touch $GNU_SECURE >> /dev/null
endif
grep `hostname` $GNU_SECURE >> /dev/null
if ( $status ) then
  echo $HOST >> $GNU_SECURE
endif

Usage: em.csh [-n] [file(s)] Note: within the script you might want to adjust values for variables XEMACS/XEMACS_OPTIONS/GNUCLIENT to suit your environment. If IGNORE_LOCAL_XEMACS_PROCESS is set to 0, and the .gnuhost tag file is missing, gnuclient tries to connect to the local running XEmacs process (if there is one).

em.sh

Wrapper script for Emacs and emacsclient.

Starts either Emacs (on current host) or emacsclient, depending on whether there is already an Emacs process; this is determined by looking for the process or a tag file (.emacshost) in user's home directory. With -n option, starts a new Emacs process, skipping the emacsclient functionality. With -d commands are only printed, not executed

Usage: em.sh [-n] [-d] [emacs-option(s)] [file(s)]

About

A Linux (C-shell) wrapper script for launching Emacs/emacsclient/XEmacs/gnuclient

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages