[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to check if xyz-mode is on load path?
From: |
Lennart Borgman |
Subject: |
Re: how to check if xyz-mode is on load path? |
Date: |
Mon, 2 Mar 2009 11:03:27 +0100 |
On Mon, Mar 2, 2009 at 5:48 AM, Xah Lee <xahlee@gmail.com> wrote:
> how can i check if a package already exists in the load path?
>
> what i want to do is to put a package into autoload, but don't do that
> if that package is already included in user's load path (e.g. either
> the package is included in the emacs version she's got, or she already
> installed it herself).
>
> e.g. pseudo code:
>
> (when
> (not (isPackageInstalledQ "ocaml-mode"))
> (autoload ocaml-mode "~/xahdir/ocaml-mode" )
> )
locate-library
> Thanks
>
> Xah
> ∑ http://xahlee.org/
>
> ☄
>