Initialization file for JOE JOE looks for this file in: 1 - .joerc 2 - $HOME/.joerc 3 - /usr/local/lib/joerc This file can include other files by placing the following include command in the first column: :include filename FIRST SECTION: Default global options (these options can also be specified on the command line. Also the NOXON, LINES, COLUMNS, DOPADDING and BAUD options can be specified in environment variables): Put each option you want set in the first column: -option Sets the option --option Clears the option -mid Cursor is recentered when scrolling is necessary -marking Text between ^KB and cursor is highlighted (use with -lightoff) -asis Characters 128 - 255 shown as-is -force Force final newline when files are saved -nobackups If you don't want backup files to be created -lightoff Turn off highlighting after block copy or move -exask ^KX always confirms file name -beep Beep on errors and when cursor goes past extremes -nosta Disable top-most status line -keepup %k and %c status line escape sequences updated frequently -pg nnn No. lines to keep for PgUp/PgDn -csmode ^KF after a pervious search does a ^L instead -backpath path Directory to store backup files -nonotice Disable copyright notice -noxon Attempt to turn off ^S/^Q processing -orphan Put extra files given on command line in orphaned buffers instead of in windows -dopadding Output pad characters (for when there is no tty handshaking) -lines nnn Set no. screen lines -baud nnn Set baud rate for terminal optimizations -columns nnn Set no. screen columns -help Start with help on -skiptop nnn Don't use top nnn lines of the screen Status line definition strings. -lmsg defines the left-justified string and -rmsg defines the right-justified string. The first character of -rmsg is the background fill character. The following escape sequences can be used in these string: %t 12 hour time %u 24 hour time %T O for overtype mode, I for insert mode %W W if wordwrap is enabled %I A if autoindent is enabled %n File name %m '(Modified)' if file has been changed %* '*' if file has been changed %r Row (line) number %c Column number %k Entered prefix keys %S '*SHELL*' if there is a shell running in window %M Macro recording message The formatting escape sequences may also be given: \i Inverse \u Underline \b Bold \d Dim \f Blink -lmsg \i%k%T%W%I %n %m %M -rmsg %S Row %r Col %c %t Ctrl-J for help SECOND SECTION: File name dependant local option settings: Each line with '*' in the first column indicates the modes which should be files which match the regular expression. If more than one regular expression matches the file name, than the last matching one is chosen. Here is a list of modes which can be set: -wordwrap Wordwrap -autoindent Auto indent -overwrite Overtype mode -lmargin nnn Left margin -rmargin nnn Right margin -tab nnn Tab width -indentc nnn Indentation character (32 for space, 9 for tab) -istep nnn Number of indentation columns -french One space after '.', '?' and '!' for wordwrap and paragraph reformat instead of two. Joe does not change the spacing you give, but sometimes it must put spacing in itself. This selects how much is inserted. -spaces TAB inserts spaces instead of tabs. -linums Enable line numbers on each line -rdonly File is read-only -keymap name Keymap to use if not 'main' -lmsg Status line definition strings- -rmsg see previous section for more info. * -wordwrap *.c -autoindent *.h -autoindent *akefile *AKEFILE *rc *.p -autoindent THIRD SECTION: Named help screens: Use \i to turn on/off inverse video Use \u to turn on/off underline Use \b to turn on/off bold Use \d to turn on/off dim Use \f to turn on/off flash {Basic \i Help Screen turn off with ^J more help with ESC . (^[.) \i \i \i\uCURSOR\u \uGO TO\u \uBLOCK\u \uDELETE\u \uMISC\u \uEXIT\u \i \i \i \i^S left ^D right ^R prev. screen ^KB begin ^D char ^B reformat ^KX save \i \i \i \i^E up ^X down ^C next screen ^KK end ^Y line ^V overtype ^KQ abort \i \i \i \i^A previous word ^QS beg. of line ^KV move ^T >word ^] refresh ^KZ shell \i \i \i \i^F next word ^QD end of line ^KC copy ^QY >line ^V overtype \uFILE\u \i \i \i \i\uSEARCH\u ^QR top of file ^KW file ^U undo \uSPELL\u ^KE new \i \i \i \i^QF find text ^QC end of file ^KY delete ^^ redo ^QN word ^KR insert\i \i \i \i^L find next ^QI to line No. ^K/ filter ^QL file ^KD save \i \i } {Windows \i Help Screen turn off with ^J prev. screen ^[, next screen ^[. \i \i \i^KO Split the window in half ^KE Load file into window \i \i \i \i^KG Make current window bigger ^KT Make current window smaller \i \i \i \i^KN Go to the window below ^KP Go to the window above \i \i \i \i^KQ Eliminate the current window ^KI Show all windows / Show one window\i \i } {Advanced \i Help Screen turn off with ^J prev. screen ^[, next screen ^[. \i \i \iMACROS MISC SCROLL SHELL GOTO I-SEARCH \i \i \i \i^[( Record ^Q? status ^Q. Right ^K' Window ^QB to ^KB ^[R Backwards \i \i \i \i^[) Stop ^QQ repeat ^Q, Left ^[! Command ^QK to ^KK ^[S Forwards \i \i \i \i^[ 0-9 Play ^QM Math QUOTE DELETE BOOKMARKS \i \i \i \i^[? Query ^KA Center line ^P Ctrl- ^[Y yank ^K 0-9 Set \i \i \i \i^[H Message ^\\ Meta- ^[O word< ^Q 0-9 Goto \i \i } {Programs \i Help Screen turn off with ^J prev. screen ^[, next screen ^[. \i \i \iGOTO INDENT COMPILING \i \i \i \i^Q[ Mathcing ( [ { ^K. more ^[C Compile and parse errors \i \i \i \i^QP Previous place ^K, less ^[E Parse errors \i \i \i \i^K= Next place ^[= Goto next error \i \i \i \i^K; Tags file srch ^[- Goto previous error \i \i } {Search \i Help Screen turn off with ^J prev. screen ^[, next screen ^[. \i \i \iSpecial search sequences: \i \i \i \i \\^ \\$ matches beg./end of line \\? match any single char \i \i \i \i \\< \\> matches beg./end of word \\* match 0 or more chars \i \i \i \i \\c matches balanced C expression \\\\ matches a \\ \i \i \i \i \\[..] matches one of a set \\n matches a newline \i \i \i \i \\+ matches 0 or more of the character which follows the \\+ \i \i \i \iSpecial replace sequences: \i \i \i \i \\& replaced with text which matched search string \i \i \i \i \\0 - 9 replaced with text which matched Nth \\*, \\?, \\c, \\+, or \\[..] \i \i \i \i \\\\ replaced with \\ \\n replaced with newline \i \i } {Names \i Help Screen turn off with ^J prev. screen ^[, next screen ^[. \i \i \i Hit TAB at file name prompts to generate menu of file names \i \i \i \i Or use up/down keys to access history of previously entered names \i \i \i \i Special file names: \i \i \i \i !command Pipe in/out of a shell command \i \i \i \i >>filename Append to a file \i \i \i \i - Read/Write to/from standard I/O \i \i \i \i filename,START,SIZE Read/Write a part of a file/device \i \i \i \i Give START/SIZE in decimal (255), octal (0377) or hex (0xFF) \i \i } {Joe \i Help Screen turn off with ^J prev. screen ^[, \i \i \i Send bug reports to: Joe Allen (jhallen@world.std.com) \i \i } FOURTH SECTION: Key bindings: Section names you must provide: :main For editing window :prompt For prompt lines :query For single-character query lines :querya Singe-character query for quote :querysr Search & Replace single-character query Other sections may be given as well for organization purposes or for use with the '-keymap' option. Use: :inherit name To copy the named section into the current one :delete key To delete a key sequence from the current section Keys: Use ^@ through ^_ and ^? for Ctrl chars Use SP for space Use a TO b to generate a range of characters You can also use termcap string capability names. For example: .ku Up .kd Down .kl Left .kr Right .kh Home .kH End .kI Insert .kD Delete .kP PgUp .kN PgDn .k1 - .k9 F1 - F9 .k0 F0 or F10 .k; F10 Macros: Simple macros can be made by comma seperating 2 or more command names. For example: bof,bol ^T Z Goto beginning of last line Also quoted matter is typed in literally: bol,">",dnarw .k1 Quote news article line Macros may cross lines if they end with , :windows Bindings common to all windows type ^@ TO ÿ abort ^K Q abort ^K ^Q abort ^K q abort ^C arg ^Q Q arg ^Q ^Q arg ^Q q explode ^K I explode ^K ^I explode ^K i help ^J help ^K H help ^K ^H help ^K h hnext ^[ . hprev ^[ , math ^Q M math ^Q ^M math ^Q m msg ^[ H msg ^[ ^H msg ^[ h nextw ^K N nextw ^K ^N nextw ^K n pgdn .kN Screen down pgdn ^[ [ 6 ~ pgup .kP Screen up pgup ^[ [ 5 ~ play ^[ 0 TO 9 prevw ^K P prevw ^K ^P prevw ^K p query ^[ ? record ^[ ( retype ^] rtn ^M shell ^K Z shell ^K ^Z shell ^K z stop ^[ ) :main Text editing window :inherit windows Spell-check macros filt,"cat >ispell.tmp;ispell ispell.tmp /dev/tty;cat ispell.tmp;/bin/rm ispell.tmp",rtn,retype ^Q l filt,"cat >ispell.tmp;ispell ispell.tmp /dev/tty;cat ispell.tmp;/bin/rm ispell.tmp",rtn,retype ^Q L filt,"cat >ispell.tmp;ispell ispell.tmp /dev/tty;cat ispell.tmp;/bin/rm ispell.tmp",rtn,retype ^Q ^L psh,nextword,markk,prevword,markb,filt,"cat >ispell.tmp;ispell ispell.tmp /dev/tty;tr -d ispell.tmp;ispell ispell.tmp /dev/tty;tr -d ispell.tmp;ispell ispell.tmp /dev/tty;tr -d