Executing LISP programs in GNU Emacs

1.2k views Asked by At

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

There are 3 answers

0
myTerminal On BEST ANSWER

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.

4
kbshimmyo On

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.

0
Rangi Lin On

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.