From: "Francis Moreau" <francis.moro@gmail.com>
To: "Thien-Thi Nguyen" <ttn@gnuvola.org>
Cc: gnu-emacs-help@gnu.org
Subject: Re: how to not change the working directory when opening a file
Date: Tue, 15 Jan 2008 10:29:41 +0100 [thread overview]
Message-ID: <38b2ab8a0801150129k2b9c8561md95a1c385f608044@mail.gmail.com> (raw)
In-Reply-To: <87ve5vh5xy.fsf@ambire.localdomain>
Hello,
On Jan 15, 2008 9:02 AM, Thien-Thi Nguyen <ttn@gnuvola.org> wrote:
> () "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.
>
Yes but once I need to really save /tmp/foo.txt after composing my
email, I need to specify /tmp/foo.txt. It's not convenient and foo.txt
is a temporary file so its name is rather complex to remember.
> 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.
I prefer using mutt as MUA.
Thanks
--
Francis
next prev parent reply other threads:[~2008-01-15 9:29 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.6126.1200343901.18990.help-gnu-emacs@gnu.org>
2008-01-15 8:02 ` how to not change the working directory when opening a file Thien-Thi Nguyen
2008-01-15 9:29 ` Francis Moreau [this message]
2008-01-15 15:11 ` Thierry Volpiatto
2008-01-15 15:25 ` Francis Moreau
2008-01-14 21:13 How " Francis Moreau
2008-01-15 16:16 ` Sebastian Tennant
2008-01-16 2:56 ` Kevin Rodgers
2008-01-16 6:35 ` Francis Moreau
-- strict thread matches above, loose matches on Subject: below --
2008-01-14 15:15 how " Francis Moreau
2008-01-14 23:17 ` Eric Hanchrow
2008-01-15 0:21 ` Lennart Borgman (gmail)
2008-01-15 9:27 ` Francis Moreau
2008-01-15 15:13 ` Eric Hanchrow
2008-01-15 15:53 ` Francis Moreau
2008-01-15 16:25 ` Sebastian Tennant
2008-01-15 17:16 ` Francis Moreau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=38b2ab8a0801150129k2b9c8561md95a1c385f608044@mail.gmail.com \
--to=francis.moro@gmail.com \
--cc=gnu-emacs-help@gnu.org \
--cc=ttn@gnuvola.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).