Re: Changing Editor
- To: mutt-users@xxxxxxxx
- Subject: Re: Changing Editor
- From: Kyle Wheeler <kyle-mutt@xxxxxxxxxxxxxx>
- Date: Wed, 12 Sep 2007 11:43:01 -0500
- Comment: DomainKeys? See http://domainkeys.sourceforge.net/
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=memoryhole.net; h=date:from:to:subject:message-id:references:mime-version:content-type:in-reply-to; q=dns/txt; s=default; bh=IuXcBsCl1dK4b23WY/zXbncKsIk=; b=c2xYCrEItRiFyGUKp02o741CwpKmfofDAU5dwQZFqYKmYCvbs4T2h2dNSqUal4kFqvw6sPHwrIbZqNkqJ8Z6WqGHZhPWgettzS9YphEnbWAKSH2zDjUXR5XWOWaIkCHISWhJszBDaCdqP3Di82h989VlnIRDmBoOWX/XVfn+z3Q=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=memoryhole.net; b=ljILWMEWEdJyF8d0Mocv1ydbAFmt9ZT4939XfdcKd8Aovs1IahZxIhqW98KPqSWNmkDL4Db/jaRQuhqaR135tPYK4yiEJaSbZMXcKKx6nRiKW8UL3NazJ4vvk2nWjzHN7iaJeBkFPbVYeNi1qr0elHddZM+Zpm3atWKWCfSJVng=; h=Received:Received:Date:From:To:Subject:Message-ID:Mail-Followup-To:References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent;
- In-reply-to: <20070912161336.GA1228@xxxxxxxxxx>
- List-post: <mailto:mutt-users@mutt.org>
- List-unsubscribe: send mail to majordomo@mutt.org, body only "unsubscribe mutt-users"
- Mail-followup-to: mutt-users@xxxxxxxx
- References: <20070912161336.GA1228@xxxxxxxxxx>
- Sender: owner-mutt-users@xxxxxxxx
- User-agent: Mutt/1.5.16 (2007-09-09)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday, September 12 at 09:13 AM, quoth Bill:
>#1. Is it possible to use an application like Writeroom or even
> TextEdit?
Yes.
>#2. If so, how would one go about doing this?
There are two important things you have to keep in mind:
1. The command you use MUST work in a terminal.
2. The command you must MUST NOT exit until it is done editing.
Thus, you can use something like TextEdit, but you have to fully quit
TextEdit when you're done editing.
The reason is that otherwise mutt has no idea when you're done editing
a file. The best it can do is wait for the $EDITOR to exit. There's no
way to "wait for the editor's window to close" or some such
(unfortunately).
>I've tried changing the set editor value in .muttrc to:
>
>set editor=/Volumes/mbp/Applications/WriteRoom.app
This doesn't meet the first requirement. If you attempt to run that
application from the terminal, all it will tell you is:
bash: /Volumes/mbp/Applications/WriteRoot.app: is a directory
There are two ways to run a .app application from the terminal: either
using the 'open' command, or by specifying the name of the binary
within the .app folder. The former suffers from the problem that the
'open' command will exit very quickly, which doesn't meet the second
requirement. The latter option will work, though. Try this:
set editor=/Volumes/mbp/Applications/WriteRoom.app/Contents/MacOS/WriteRoom
~Kyle
- --
To succeed in the world it is not enough to be stupid, you must also
be well-mannered.
-- Voltaire
-----BEGIN PGP SIGNATURE-----
Comment: Thank you for using encryption!
iD8DBQFG6BcVBkIOoMqOI14RArrJAJ96E/RZxu8WvIWMaz4agLVaAP0y4QCdH+q/
Ch16IEvNYO4shTkeDUvwt+M=
=+7EN
-----END PGP SIGNATURE-----