3

I've been learning to use the GNU Emacs lately and have developed quite an interest in using the same as my text editor to replace text editors in my Linux Mint Olivia. I've also been watching MIT videos on Structural Interpretation of Computer Programs and am interested try my hand at LISP to solve problems like the ones that are there at project Euler. I have tried a lot to search on the internet for how to write and execute LISP programs in Emacs, some like the ones that are shown in MIT lectures. I've tried the 'lisp-mode', 'lisp-interaction-mode', etc. but no luck.

Any help would be higly appreciated.

3
  • 1
    use SLIME to execute programs in an external Lisp process through an Emacs buffer. Commented Dec 10, 2013 at 4:34
  • 1
    SICP is in Scheme, which is indeed a kind of Lisp but fairly different from Emacs Lisp or Common Lisp. Make sure the solution you find supports Scheme specifically. Commented Dec 11, 2013 at 6:03
  • I've tried gnu.org/software/mit-scheme and it works fine just that it is a separate software altogether. Commented Dec 15, 2013 at 16:34

3 Answers 3

3

If you're looking for REPL way, you can use M-x ielm, which is a built-in Emacs Lisp REPL

If you want to just compile the lisp file and execute the code, you can check this problem I asked recently.

Sign up to request clarification or add additional context in comments.

Comments

1

I installed the Quack mode for emacs (the counterpart of DrRacket) for doing HtDP/SICP stuff. It's worked and been prettier than the DrRacket GUI.

4 Comments

I downloaded Quack, created my '.macs' file and loaded the plugin. The Quack menu now shows up on the emacs menubar. Now when I select to run scheme, it asks me about scheme buffer, etc. Any pointers?
Hmmm... not from personal experience. I use emacs only through the terminal. What specifically does it ask?
It asks me for what scheme to run it with (default: mzscheme). In later attempts it says, "No process current buffer. Set 'scheme-buffer' or execute 'run-scheme' ".
It doesn't use Emacs for the Lisp, it wants an external Scheme interpreter to interact with.
1

Finally settled with MIT-Scheme (http://www.gnu.org/software/mit-scheme). One can do all the exercises shown in SICP lectures there.

OR

You could use lisp-interaction-mode in Emacs, and move thru evaluating statements.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.