So I've finally decided to learn Lisp. I'm reading Practical Common Lisp and I'm using Lispbox (not the one the book recommends - it's no longer available, but it seems this is suitable nonetheless).
So far in my career I have managed to avoid wresting with emacs, but I guess that part of my life is over :-) Actually, I'm kind of excited - this is a brand new world.
When saving .lisp files, the out-of-the-box setup dumps these files into the lispbox-0.7
folder (which is also the LISPBOX_HOME env.var). My math teacher taught me, "If you don't know what you're doing, at least do it neatly." So I want to at least keep my work in a nice tidy folder. I can specify the full path on saving/loading. But can I tell (lispbox|emacs|whatever) to use a different folder by default?
If it matters: I will likely use the Windows version more often, but I also have a setup on Ubuntu.
I have looked at this and this and this. I tried adding these to the .emacs
file (one at a time):
(setq default-directory "C:/Work/lisp/")
(cd "C:/Work/lisp/")
To open the .emacs
file I used C-x C-f~/.emacs
If I try changing the LispBox shortcut's "Start in" property, it fails to load at all.
M-xcd c:/work/lisp
does work, but I have to do it every time I launch LispBox
What I'm doing in the meantime: I've created a separate lisp
folder beside the lispbox-0.7
folder. That way I can prepend ../lisp/
before any filename. This isn't so bad, especially with the tab auto-complete.
Found it!
The reason modifying
.emacs
wasn't working is because of thelispbox.bat
file. It has this line:So took out the two "no" parameters, leaving this...
...and it worked.
This worried me, though. Why would the default not want to load the
.emacs
file? I guess once I understand all of this better I'll have an answer. Until then, I restored the above, the changed this line......to this...
Now I'm happy.