<<< Date Index >>>     <<< Thread Index >>>

Re: Changing Editor



-----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-----