help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Can't open R in Emacs


From: Eli Zaretskii
Subject: Re: Can't open R in Emacs
Date: Sun, 05 Aug 2007 06:08:24 +0300

> From: Hosley <kbrownk@gmail.com>
> Date: Sat, 04 Aug 2007 14:15:16 -0700
> 
> Where am I supposed to find or put this .emacs file?
> Do I just create one in C:\devel\emacs\lisp by creating a text file,
> typing in (setq inferior-R-program-name "C:/progra~1/R/R-2.5.1/bin/
> Rterm.exe"), saving, then changing the format to .emacs?

No.  Just start Emacs, and type "C-x C-f ~/.emacs RET".  Emacs will
itself find the place which corresponds to your home directory
(abbreviated as "~" above).  .emacs is just a normal text file, so no
need to change its format.

In case you are not familiar with the Emacs key notation, "C-x" means
hold the Ctrl key and press x, and similar with C-f.  "RET" means the
[Enter] or [Return] key.

Once you open the .emacs file with the above command, type
(setq inferior-R-program-name "C:/progra~1/R/R-2.5.1/bin/Rterm.exe")
into that file, then save it with "C-x C-s".  Then restart Emacs (exit
and start it again).  That's it!




reply via email to

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