[ESS] Getting ESS to work with GNU Emacs (finding the .emacs file, etc.)

Vincent Goulet Vincent.Goulet at act.ulaval.ca
Tue Sep 6 04:20:12 CEST 2011


Perhaps may I add a word on the location of the ~/ directory.

On Unix-like systems, this is well defined as the "home" directory (typically /home/<username>).

On Windows systems, to the best of my knowledge, ~ is not explicitly defined by default. That's why my Emacs distribution [*] defines the %HOME% environment variable upon installation, making it point to %USERPROFILE%. One can easily redefine the environment variable to set the directory where the .emacs file will be saved and read from.

As a side note and although I wrote it on this list before, I found quite a few years ago, when I started to play with Emacs on Windows, that defining the HOME environment variable avoids hang-ups when one switches from Emacs to another application and back. I didn't test recently if this is still the case since I think having HOME defined is a Good Thing anyway.

HTH

Vincent

* http://vgoulet.act.ulaval.ca/en/emacs

Le 2011-09-05 à 19:54, Richard M. Heiberger a écrit :

> Just open the file
> C-x C-f ~/.emacs <RET>
> 
> If it doesn't exist yet, it will be created.
> 
> enter the single line (with correct path for your machine)
> (load-file "c:/full/path/to/ess/lisp/ess-start.el")
> 
> Save it with C-x C-s
> 
> Close emacs and open emacs.  Assuming you installed R in the default place,
> ESS will find
> your R.  Then
> M-x R
> will start R.
> 
> Since you apparently already have downloaded ESS, you already have the full
> documentation.
> It is in
> c:/full/path/to/ess/doc/html/ess.html
> 
> 
> Please use the ESS-help at r-project.org address in the future.  The older ethz
> address is no longer recommended.
> 
> Rich
> 
> 
> On Mon, Sep 5, 2011 at 6:51 PM, Barry DeCicco <bdecicco2001 at yahoo.com>wrote:
> 
>> Hello,
>> 
>> I apologize for asking what is probably the single biggest question,
>> but I'm trying to find out how to edit my ~/.emacs file.
>> 
>> 
>> I can not find this file (I'm on Windows 7, whose help function was
>> helpfully
>> castrated by MS).
>> 
>> I've gone through a search of this list, MS's help file (advanced
>> searching),
>> Stack Overflow, and a Google search in general.
>> 
>> Has anybody posted working instructions on how to do this in Windows 7?
>> 
>> If so, I'd appreciate the pointer.
>> 
>> Sincerely,
>> 
>> Barry
>> 
>>       [[alternative HTML version deleted]]
>> 
>> 
>> ______________________________________________
>> ESS-help at r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/ess-help
>> 
>> 
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> ESS-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help



More information about the ESS-help mailing list