Tuesday 15 March 2011

emacs - Change default save folder in LispBox -



emacs - Change default save folder in LispBox -

so i've decided larn lisp. i'm reading practical mutual lisp , i'm using lispbox (not 1 book recommends - it's no longer available, seems suitable nonetheless).

so far in career have managed avoid wresting emacs, guess part of life on :-) actually, i'm kind of excited - brand new world.

when saving .lisp files, out-of-the-box setup dumps these files lispbox-0.7 folder (which lispbox_home env.var). math teacher taught me, "if don't know you're doing, @ to the lowest degree neatly." want @ to the lowest degree maintain work in nice tidy folder. can specify total path on saving/loading. can tell (lispbox|emacs|whatever) utilize different folder default?

if matters: utilize windows version more often, have setup on ubuntu.

i have looked @ this , this , this. tried adding these .emacs file (one @ time):

(setq default-directory "c:/work/lisp/") (cd "c:/work/lisp/")

to open .emacs file used c-x c-f~/.emacs

if seek changing lispbox shortcut's "start in" property, fails load @ all.

m-xcd c:/work/lisp work, have every time launch lispbox

what i'm doing in meantime: i've created separate lisp folder beside lispbox-0.7 folder. way can prepend ../lisp/ before filename. isn't bad, tab auto-complete.

i know nil lisp box, , not of describe clear me. here goes.

it sounds looking way create c:/work/lisp default directory when start emacs. that, using ms windows shortcut, putting folder in start in field indeed accomplish that. speak of lispbox shortcut's start in. if mean emacs shortcut, should work.

but of course of study need use windows syntax folder - not c:/work/lisp, c:\work\lisp.

is problem was?

the windows shortcut windows thing. emacs different: accepts / folder separator.

tip: if solves problem, might want start emacs in dired mode on same folder, is, if folder 1 utilize lot. that, add together folder @ end of command line - again, using windows syntax, between double-quotes:

c:\your\path\to\runemacs.exe "c:\work\lisp"

emacs lisp-in-a-box

No comments:

Post a Comment