You can go through foxtools to do this. You have to first get the whandle of the editor (_wontop() probably), then call _edgetenv() to populate an array with the settings, modify the appropriate setting in the array, than call _edsetenv() passing the array back. Infortmation on this can be found in "Extended Foxtools Help". It's in the file section.
DukeDaddy