Old thread, but if someone stumbles across this (like I did).. I also have used an alias for a long time to disable wordwrap, like so:
Code:
joe() { /usr/bin/joe --linums --wordwrap -nonotice -backpath ~/edit-cache/ "$@" }
But.. it only disables the wordwrap for the first file; if I were to add "--wordwrap" in front of every file as a "local option" it would work, but how to separate the "global-options" from the "local-options" of the first filename, as the man page points out:
Code:
joe [global-options] [ [local-options] filename ]...
But, alas, that was not necessary. I found the answer on
Joe's support forums:
Quote:
Find ftyperc. It should be in the same place as the installed joerc. "mkdir $HOME/.joe" . Copy ftyperc to "$HOME/.joe" . Edit it and remove any offending "-wordwrap"s.
|
And indeed, on my Ubuntu system in
/etc/joe/ there is
ftyperc file. Once I added a space in front of all of the occurrences of
-wordwrap in that file (hence commenting them out per Joe's conf file format), all files now have the wordwrap disabled by default (previously only the first file had the wordwrap disabled per my alias)! This system is a single-user system, so I edited
/etc/joe/ftyperc file directly, but on multi-user systems you may want to follow the suggestion to copy the
ftyperc file to your home directory, and make the overrides to comment out/delete
-wordwrap occurrences out there.