[Top][All Lists]

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

Re: shell command output question

From: Niklas Morberg
Subject: Re: shell command output question
Date: Wed, 24 Apr 2002 15:15:17 +0200
User-agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.2 (i386-mingw-nt5.0.2195)

Noel Yap <> writes:

> I would like to have the following in my .emacs:
>   (setq load-path (cons STUFF load-path))
> where STUFF is the output of a command line.  Does
> anyone know how I would be able to do this?

shell-command-to-string might be your friend. Does this work?

(setq load-path (cons (shell-command-to-string
                       "your_command") load-path))


reply via email to

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