[Tfug] Conditional execution of .emacs?

Robert Hunter hunter at tfug.org
Sat Jun 28 22:44:40 MST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, Jun 23, 2008 at 08:44:28PM -0700, Claude Rubinson wrote:
> I assume that you meant '-f'?

Those options (-f/--function and --eval) are very similar, so I
suspect either one would could be made to work.  The precise
difference, IIANM, has to do with the way the function arguments are
evaluated.

> In any case, that's what I eventually did.  I removed the gnuserv
> invocation from my .emacs and rewrote the dtemacs shell script
> that's provided with gnuserv.  You set your $EDITOR to dtemacs.
> When invoked, dtemacs tests if gnuserv is running.  If so, dtemacs
> invokes gnuclient; if not, emacs -f '(gnuserv-start)'.  Seems to
> solve the problem.  Now, when I want to invoke an R instance, I just
> call an alias that invokes emacs sans gnuserv.

Out of curiosity, are you using xemacs, or GNU emacs?  I've had no
problems with using ESS (an emacs mode for various statistical
packages, including R) while running emacs-server.  What sort of
problems were you having?


- --Rob
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIZyFIJ1pz6tWxufARAhphAJsEiv8T9zPiiEBuMbd7mc+VdL5MaACdE6sQ
/3PCBah9wsDRK6Qr63aMZn0=
=2+tm
-----END PGP SIGNATURE-----




More information about the tfug mailing list