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

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

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


From: Xah Lee
Subject: how to check if xyz-mode is on load path?
Date: Sun, 1 Mar 2009 20:48:50 -0800 (PST)
User-agent: G2/1.0

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

Thanks

  Xah
∑ http://xahlee.org/

reply via email to

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