13.4 Load and open your files on startup

Suppose you always compile and load several files after LispWorks starts. You can arrange for this to happen automatically by adding forms like these in your initialization file:

(defvar *my-files*
(dolist (file *my-files*)
  (compile-file file :load t))

If you also want to open these files in the Editor tool, then you can add this form in your initialization file, after those above:

(define-action "Initialize LispWorks Tools"
               "Open My Files"
               #'(lambda (screen)
                   (declare (ignore screen))
                   (dolist (file *my-files*)
                     (ed file))))

LispWorks User Guide - 11 Mar 2008