Other Programming Languages
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreOther Programming Languages

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old August 9th, 2006, 09:42 AM
flebber flebber is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2006
Location: Newcastle, Australia
Posts: 11 flebber User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 6 m 35 sec
Reputation Power: 0
Enabling REPL and Slime in Emacs

I am setting up emacs to use SBCL and slime to program lisp. I can't quite get my .macs set up correctly. I have it set up and slime working well but I cannot access REPL from Emacs C-c C-z it says Lisp not available.

So SBCL as itself must not be linked to emacs to use.

This is my .macs directory
Quote:
;; .emacs ;;; uncomment this line to disable loading of "default.el" at startup ;; (setq inhibit-default-init t) ;; turn on font-lock mode (when (fboundp 'global-font-lock-mode) (global-font-lock-mode t)) ;; enable visual feedback on selections ;(setq transient-mark-mode t) ;; default to better frame titles (setq frame-title-format (concat "%b - emacs@" (system-name))) ;; default to unified diffs (setq diff-switches "-u") ;; always end a file with a newline ;(setq require-final-newline 'query) (setq inferior-lisp-program "sbcl") (require 'slime) (slime-setup) (setq load-path (cons "/usr/local/acl80_express/eli" load-path)) (load "fi-site-init")


After some reading I tried adding this to my emacs to enabl SBCL REPL.
Quote:
;;; The following is for Lisp ;;; The SBCL binary and command line arguments (require 'inf-lisp) (setq inferior-lisp-program ''/usr/local/bin/sbcl --noinform'')
But this doesn't work I receive an error
Quote:
An error has occurred while loading home/flebber/.emacs Invalid read Syntax : ")"


Any ideas how to allow to configure sbcl for .emacs ?

PS As an aside I also in response to another post have installed "gcl". If this is easier to setup for REPL and slime, I am interested.

Last edited by flebber : August 9th, 2006 at 09:50 AM. Reason: extra info

Reply With Quote
  #2  
Old September 15th, 2006, 07:39 AM
jamieB jamieB is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2002
Posts: 592 jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 1 h 56 m 16 sec
Reputation Power: 17
Quote:
Originally Posted by flebber
I am setting up emacs to use SBCL and slime to program lisp. I can't quite get my .macs set up correctly. I have it set up and slime working well but I cannot access REPL from Emacs C-c C-z it says Lisp not available.

So SBCL as itself must not be linked to emacs to use.

This is my .macs directory


After some reading I tried adding this to my emacs to enabl SBCL REPL. But this doesn't work I receive an error

Any ideas how to allow to configure sbcl for .emacs ?

PS As an aside I also in response to another post have installed "gcl". If this is easier to setup for REPL and slime, I am interested.

the minimum you need is
lisp Code:
Original - lisp Code
  1.  
  2. (setq inferior-lisp-program "/path/to/sbcl")
  3. (add-to-list 'load-path "/path/to/slime")
  4. (require 'slime)
  5. (slime-setup)

then start slime with M-x slime

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreOther Programming Languages > Enabling REPL and Slime in Emacs


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway