[Remind-Fans] wyrd & changing default editor
Paul Pelzl
pelzlpj at eecs.umich.edu
Fri Jul 28 14:57:08 EDT 2006
On Fri, Jul 28, 2006 at 10:18:17AM -0700, Danstan Bagenda wrote:
> I finally got wyrd up & running.
>
> There is a slight problem. I am trying to set the
> editor to textmate (mate).
>
> I have tried to create a ~/.wyrdrc & un it put the
> line
>
> set $EDITOR="mate"
>
> This does not work & infact wyrd fails to start up
> with it in. I have tried to read the manual to see
> how I can set the editor. Section 4 mentions setting
> this as an enviroment $EDITOR & using the above
You should look at the default wyrdrc file provided with Wyrd; it is
well-commented and should help you understand the syntax. It is
probably installed as /usr/local/etc/wyrdrc or /etc/wyrdrc .
There is a good chance you won't need to create a custom ~/.wyrdrc file,
if you can set the EDITOR environment variable correctly from your
shell. The default wyrdrc file is configured to read this environment
variable.
Check here:
http://macromates.com/textmate/manual/using_textmate_from_terminal#the_general_editor_variable
So at minimum, you'll want to execute
export EDITOR='mate -w'
from the console prompt, so that the textmate process will not return
control to Wyrd until the file has been closed.
The default wyrdrc file also assumes that the editor supports the
command-line option "+N" to automatically jump to line N of the file.
If textmate does not support this, then you will need to create a custom
~/.wyrdrc with textmate-specific settings for edit_old_command and
edit_new_command . If you need help with this, why don't you contact me
off-list and I'll walk you through the details.
Hope that helps,
Paul
More information about the Remind-fans
mailing list