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

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

Re: how to not change the working directory when opening a file


From: Thien-Thi Nguyen
Subject: Re: how to not change the working directory when opening a file
Date: Tue, 15 Jan 2008 09:02:49 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux)

() "Francis Moreau" <francis.moro@gmail.com>
() Mon, 14 Jan 2008 16:15:54 +0100

   This is useful when composing an email. I sometime need to
   include the output of a shell command but this shell command
   must be executed in the directory where emacs was launched.

you can try something like: emacs --insert /tmp/foo.txt -f text-mode
alternatively, you can try: emacs -f compose-mail
and then `C-x i /tmp/foo.txt RET' at a later point.

probably best if you invert your flow to live in emacs, in
which case you can use `C-u M-! SHELL-COMMAND RET' as needed.

thi




reply via email to

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