[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ELisp finding files in Path
From: |
Eli Zaretskii |
Subject: |
Re: ELisp finding files in Path |
Date: |
Tue, 28 Sep 2010 06:22:02 -0400 |
> From: pocmatos@gmail.com (Paulo J. Matos)
> Date: Tue, 28 Sep 2010 11:10:12 +0100
>
> I would like to execute some commands in my .emacs only if there are
> some files in the current PATH. The specific example is, I only want to
> load a perforce library (p4.el) if I can find the executable p4 in the
> path.
>
> How can I do this?
Check out the executable-find function, it will return nil if it
doesn't find an executable program on PATH.