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

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

Re: "source" shell commands


From: Tassilo Horn
Subject: Re: "source" shell commands
Date: Sat, 24 Mar 2007 14:33:16 +0100
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.96 (gnu/linux)

Matthew Flaschen <matthew.flaschen@gatech.edu> writes:

> Is there an elisp function to "source" a shell file; i.e. an
> alternative to:
>
> (shell-command (concat "source \"" (expand-file-name "~/.rc") "\""))

Sure.

--8<---------------cut here---------------start------------->8---
(defun mf-source (file)
  (interactive "f")
  (shell-command (concat "source \"" file "\"")))
--8<---------------cut here---------------end--------------->8---

Regards,
Tassilo
-- 
VI VI VI - The Roman Number Of The Beast


reply via email to

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