- 1. start R;
- 2. load the swank.R file:
-#+BEGIN_SRC R
- source("swank.R")
-#+END_SRC
- 3. at the R prompt, run
-#+BEGIN_SRC R
- swank();
-#+END_SRC
- 4. within emacs, load and initialize slime;
-#+BEGIN_SRC emacs-lisp
- (require 'slime)
- (slime-setup '(slime-repl))
-#+END_SRC
- 5. run =M-x slime-connect=, accepting the default host and port,
- and acknowledging the protocol version mismatch.
-
- At this point, an R REPL should appear.
-** Emacs customization
- At a minimum, slime needs to be set up to function. I've
- used the following forms in my =~/.emacs=
-#+BEGIN_SRC emacs-lisp
- (require 'slime)
- (slime-setup '(slime-repl slime-scratch slime-media))
-#+END_SRC
- The =slime-media= contrib is new and (at present) R-specific,
- allowing for image results to be embedded in the REPL.
+ Following that, I have in my =~/.emacs= (you will need to adjust
+ paths to executables and source files):
+#+begin_src emacs-lisp
+;;; ~/.emacs.d/
+(let ((default-directory (concat user-emacs-directory (convert-standard-filename "site-lisp/"))))
+ (normal-top-level-add-subdirs-to-load-path))