basis question
Posted: Sun Mar 23, 2014 12:24 am
Hi all,
Embarrassingly simple question here, and please let me know if I should be posting on another forum, like an emacs one. Complete beginner here Re: computers, programming, LISP, EMACS. Let me say first that I'm very keen to learn LISP, from what I have read it's the best language around and already whenever I see a parentheses, even in everyday print, I get a bit of a thrill.
After many weeks of searching the net I've managed to get EMACS and SLIME (+ sbcl) running on my ubuntu 12.04 system. I've read and or flicked through both the slime and emacs manuals however I'm currently stuck. ALL I want to be able to do at this early stage of my learning is to write LISP code, save it and run it at a later time.
When I first started trying to learn LISP ( a few months ago) I became frustrated and turned to Python. Writing, saving and running python code later was easy, basically "run"the file and there you go. On my second attempt at LISP, as noted above, I managed to get EMACS and SLIME on my computer. A helpful youtube video showed me how 1) create a file: C-x C-f; 2) split the view: C-x 3; 3) load SLIME into one side of the split screen: m-x slime. But after that I'm stuck. So this is what I'd like to know if someone would kindly help me:
From the split screen I learned from youtube: How do I write, save and run later, LISP code (I'm working my way through Land of Lisp and Practical LISP and I want to be able to save what I'm writing and come back to it later and run it). For example, do I write my code in the buffer side of the split screen or the other side in which I've loaded slime. Once I've written some code how do I save it so I can come back to it and run it so that it works. For example I just want to be able to write the (defun say-hello () (print "Please type your name:")... example in land of lisp, save it and come back later and run it so that when I enter my name the computer replies! that's all I want to be able to do at this stage. Can anyone help me please?
Thank you in advance.
Embarrassingly simple question here, and please let me know if I should be posting on another forum, like an emacs one. Complete beginner here Re: computers, programming, LISP, EMACS. Let me say first that I'm very keen to learn LISP, from what I have read it's the best language around and already whenever I see a parentheses, even in everyday print, I get a bit of a thrill.
After many weeks of searching the net I've managed to get EMACS and SLIME (+ sbcl) running on my ubuntu 12.04 system. I've read and or flicked through both the slime and emacs manuals however I'm currently stuck. ALL I want to be able to do at this early stage of my learning is to write LISP code, save it and run it at a later time.
When I first started trying to learn LISP ( a few months ago) I became frustrated and turned to Python. Writing, saving and running python code later was easy, basically "run"the file and there you go. On my second attempt at LISP, as noted above, I managed to get EMACS and SLIME on my computer. A helpful youtube video showed me how 1) create a file: C-x C-f; 2) split the view: C-x 3; 3) load SLIME into one side of the split screen: m-x slime. But after that I'm stuck. So this is what I'd like to know if someone would kindly help me:
From the split screen I learned from youtube: How do I write, save and run later, LISP code (I'm working my way through Land of Lisp and Practical LISP and I want to be able to save what I'm writing and come back to it later and run it). For example, do I write my code in the buffer side of the split screen or the other side in which I've loaded slime. Once I've written some code how do I save it so I can come back to it and run it so that it works. For example I just want to be able to write the (defun say-hello () (print "Please type your name:")... example in land of lisp, save it and come back later and run it so that when I enter my name the computer replies! that's all I want to be able to do at this stage. Can anyone help me please?
Thank you in advance.