[slime-devel] why not automatically add the contribs directory to load-path?

Marco Baringer mb at bese.it
Sun Feb 3 18:10:35 UTC 2008


hi,

  any reason slime-setup can't automatically add the contribs directory
  to emacs' load-path when requiring contribs? something like this:

(defun slime-setup (&optional contribs)
  "Setup Emacs so that lisp-mode buffers always use SLIME.
CONTRIBS is a list of contrib packages to load."
  (when (member 'lisp-mode slime-lisp-modes)
    (add-hook 'lisp-mode-hook 'slime-lisp-mode-hook))
  (when contribs
    (pushnew (file-name-as-directory
              (expand-file-name (concat slime-path "contribs"))
             load-path
             :test 'string=)
    (dolist (c contribs)
      (require c)
      (let ((init (intern (format "%s-init" c))))
        (when (fboundp init)
          (funcall init)))))))

-- 
-Marco
Ring the bells that still can ring.
Forget your perfect offering.
There is a crack in everything.
That's how the light gets in.
	-Leonard Cohen




More information about the slime-devel mailing list