help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to check if xyz-mode is on load path?


From: Kevin Rodgers
Subject: Re: how to check if xyz-mode is on load path?
Date: Mon, 02 Mar 2009 07:25:19 -0700
User-agent: Thunderbird 2.0.0.19 (Macintosh/20081209)

Xah Lee 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" )
)

(fboundp 'ocaml-mode)

--
Kevin Rodgers
Denver, Colorado, USA





reply via email to

[Prev in Thread] Current Thread [Next in Thread]