#! /bin/sh /usr/share/dpatch/dpatch-run
## 01_editor_patch.dpatch by Kevin Coyner <kcoyner@debian.org>
## Original diff by Frank Terbeck
##
## DP: editorpatch

@DPATCH@

Index: wyrd-1.4.6/wyrdrc
===================================================================
--- wyrd-1.4.6.orig/wyrdrc	2015-11-26 10:59:05.862571481 +0100
+++ wyrd-1.4.6/wyrdrc	2015-11-26 11:00:53.679224914 +0100
@@ -3,13 +3,13 @@
 # command for the Remind executable
 set remind_command="remind"
 # the default reminder file or directory to display
-set reminders_file="$HOME/.reminders"
+set reminders_file="${DOTREMINDERS:-$HOME/.reminders}"
 # command for editing an old appointment, given a line number %line% and filename %file%
-set edit_old_command="$EDITOR +%line% \"%file%\""
+set edit_old_command="sensible-editor +%line% \"%file%\""
 # command for editing a new appointment, given a filename %file%
-set edit_new_command="$EDITOR +999999 \"%file%\""
+set edit_new_command="sensible-editor +999999 \"%file%\""
 # command for free editing of the reminders file, given a filename %file%
-set edit_any_command="$EDITOR \"%file%\""
+set edit_any_command="sensible-editor \"%file%\""
 
 
 # templates for creating new appointments
