home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 January / CHIPCD1_98.iso / software / pelne / monkey / mlinux06.a02 / USR / LIB / JOE / JOERC < prev   
Text File  |  1996-12-02  |  16KB  |  578 lines

  1.  
  2.                          Initialization file for JOE
  3.  
  4.  JOE looks for this file in:
  5.     1 - .joerc
  6.     2 - $HOME/.joerc
  7.     3 - /usr/local/lib/joerc
  8.  
  9.  This file can include other files by placing the following include command
  10.  in the first column:
  11.  
  12.  :include filename
  13.  
  14.  FIRST SECTION: Default global options (these options can also be specified
  15.  on the command line.  Also the NOXON, LINES, COLUMNS, DOPADDING and BAUD
  16.  options can be specified in environment variables):
  17.  
  18.  Put each option you want set in the first column:
  19.  
  20.  -option    Sets the option
  21.  --option    Clears the option
  22.  
  23.  -mid        Cursor is recentered when scrolling is necessary
  24.  
  25.  -marking    Text between ^KB and cursor is highlighted (use with -lightoff)
  26.  
  27.  -asis        Characters 128 - 255 shown as-is
  28.  
  29.  -force        Force final newline when files are saved
  30.  
  31.  -nobackups    If you don't want backup files to be created
  32.  
  33.  -lightoff    Turn off highlighting after block copy or move
  34.  
  35.  -exask        ^KX always confirms file name
  36.  
  37.  -beep        Beep on errors and when cursor goes past extremes
  38.  
  39.  -nosta        Disable top-most status line
  40.  
  41.  -keepup    %k and %c status line escape sequences updated frequently
  42.  
  43.  -pg nnn    No. lines to keep for PgUp/PgDn
  44.  
  45.  -csmode    ^KF after a pervious search does a ^L instead
  46.  
  47.  -backpath path Directory to store backup files
  48.  
  49.  -nonotice    Disable copyright notice
  50.  
  51.  -noxon        Attempt to turn off ^S/^Q processing
  52.  
  53.  -orphan    Put extra files given on command line in orphaned buffers
  54.         instead of in windows
  55.  
  56.  -dopadding    Output pad characters (for when there is no tty handshaking)
  57.  
  58.  -lines nnn    Set no. screen lines
  59.  
  60.  -baud nnn    Set baud rate for terminal optimizations
  61.  
  62.  -columns nnn    Set no. screen columns
  63.  
  64.  -help        Start with help on
  65.  
  66.  -skiptop nnn    Don't use top nnn lines of the screen
  67.  
  68.  Status line definition strings.  -lmsg defines the left-justified string and
  69.  -rmsg defines the right-justified string.  The first character of -rmsg is
  70.  the background fill character.  The following escape sequences can be used
  71.  in these strings:
  72.  
  73.   %t  12 hour time
  74.   %u  24 hour time
  75.   %T  O for overtype mode, I for insert mode
  76.   %W  W if wordwrap is enabled
  77.   %I  A if autoindent is enabled
  78.   %n  File name
  79.   %m  '(Modified)' if file has been changed
  80.   %*  '*' if file has been changed
  81.   %r  Row (line) number
  82.   %c  Column number
  83.   %k  Entered prefix keys
  84.   %S  '*SHELL*' if there is a shell running in window
  85.   %M  Macro recording message
  86.  
  87.  These formatting escape sequences may also be given:
  88.  
  89.   \i  Inverse
  90.   \u  Underline
  91.   \b  Bold
  92.   \d  Dim
  93.   \f  Blink
  94.  
  95. -lmsg \i%k%T%W%I %n %m %M
  96. -rmsg  %S Row %r Col %c %t  Ctrl-K H for help
  97.  
  98.  SECOND SECTION: File name dependant local option settings:
  99.  
  100.  Each line with '*' in the first column indicates the modes which should be
  101.  set for files which match the regular expression.  If more than one regular
  102.  expression matches the file name, then the last matching one is chosen.
  103.  
  104.  Here are the modes which can be set:
  105.  
  106.     -wordwrap        Wordwrap
  107.  
  108.     -autoindent        Auto indent
  109.  
  110.     -overwrite        Overtype mode
  111.  
  112.     -lmargin nnn        Left margin
  113.  
  114.     -rmargin nnn        Right margin
  115.  
  116.     -tab nnn        Tab width
  117.  
  118.     -indentc nnn        Indentation character (32 for space, 9 for tab)
  119.  
  120.     -istep nnn        Number of indentation columns
  121.  
  122.     -french            One space after '.', '?' and '!' for wordwrap
  123.                 and paragraph reformat instead of two.  Joe
  124.                 does not change the spacing you give, but
  125.                 sometimes it must put spacing in itself.  This
  126.                 selects how much is inserted.
  127.  
  128.     -spaces            TAB inserts spaces instead of tabs.
  129.  
  130.     -linums            Enable line numbers on each line
  131.  
  132.     -rdonly            File is read-only
  133.  
  134.     -keymap name        Keymap to use if not 'main'
  135.  
  136.     -lmsg            Status line definition strings-
  137.     -rmsg            see previous section for more info.
  138.  
  139. *
  140. -wordwrap
  141.  
  142. *.c
  143. -autoindent
  144.  
  145. *.h
  146. -autoindent
  147.  
  148. *akefile
  149. *AKEFILE
  150. *rc
  151.  
  152. *.p
  153. -autoindent
  154.  
  155.  THIRD SECTION: Named help screens:
  156.  
  157.  Use \i to turn on/off inverse video
  158.  Use \u to turn on/off underline
  159.  Use \b to turn on/off bold
  160.  Use \d to turn on/off dim
  161.  Use \f to turn on/off flash
  162.  
  163. {Basic
  164. \i   Help Screen    turn off with ^KH    more help with ESC . (^[.)              \i
  165. \i \i\uCURSOR\u           \uGO TO\u            \uBLOCK\u      \uDELETE\u   \uMISC\u         \uEXIT\u      \i \i
  166. \i \i^B left ^F right ^U  prev. screen ^KB begin  ^D char. ^KJ reformat ^KX save  \i \i
  167. \i \i^P up   ^N down  ^V  next screen  ^KK end    ^Y line  ^T  options  ^C  abort \i \i
  168. \i \i^Z previous word ^A  beg. of line ^KM move   ^W >word ^R  refresh  ^KZ shell \i \i
  169. \i \i^X next word     ^E  end of line  ^KC copy   ^O word< ^@  insert   \uFILE\u      \i \i
  170. \i \i\uSEARCH\u           ^KU top of file  ^KW file   ^J >line \uSPELL\u        ^KE edit  \i \i
  171. \i \i^KF find text    ^KV end of file  ^KY delete ^_ undo  ^[N word     ^KR insert\i \i
  172. \i \i^L  find next    ^KL to line No.  ^K/ filter ^^ redo  ^[L file     ^KD save  \i \i
  173. }
  174.  
  175. {Windows
  176. \i   Help Screen    turn off with ^KH    prev. screen ^[,    next screen ^[.     \i
  177. \i \i^KO Split the window in half           ^KE Load file into window             \i \i
  178. \i \i^KG Make current window bigger         ^KT Make current window smaller       \i \i
  179. \i \i^KN Go to the window below             ^KP Go to the window above            \i \i
  180. \i \i^C  Eliminate the current window       ^KI Show all windows / Show one window\i \i
  181. }
  182.  
  183. {Advanced
  184. \i   Help Screen    turn off with ^KH    prev. screen ^[,    next screen ^[.     \i
  185. \i \i\uMACROS\u         \uMISC\u            \uSCROLL\u    \uSHELL\u       \uGOTO\u       \uI-SEARCH\u     \i \i
  186. \i \i^K[ 0-9 Record ^K SPACE status ^[W Up    ^K' Window  ^[B To ^KB ^[R Backwards\i \i
  187. \i \i^K]     Stop   ^K\\ Repeat      ^[Z Down  ^[! Command ^[K To ^KK ^[S Forwards \i \i
  188. \i \i^K 0-9  Play   ^[M Math        ^K< Left  \uQUOTE\u       \uDELETE\u     \uBOOKMARKS\u    \i \i
  189. \i \i^K?     Query  ^KA Center line ^K> Right `  Ctrl-    ^[Y yank   ^[ 0-9 Goto  \i \i
  190. \i \i^[H     Message                          ^\\ Meta-    ^[O line<  ^[^[   Set   \i \i
  191. }
  192.  
  193. {Programs
  194. \i   Help Screen    turn off with ^KH    prev. screen ^[,    next screen ^[.     \i
  195. \i \i\uGOTO\u                 \uINDENT\u   \uCOMPILING\u                                      \i \i
  196. \i \i^G  Matching ( [ {   ^K, less ^[C Compile and parse errors                   \i \i
  197. \i \i^K- Previous place   ^K. more ^[E Parse errors                               \i \i
  198. \i \i^K= Next place                ^[= To next error                              \i \i
  199. \i \i^K; Tags file search          ^[- To prev. error                             \i \i
  200. }
  201.  
  202. {Search
  203. \i   Help Screen    turn off with ^KH    prev. screen ^[,    next screen ^[.     \i
  204. \i \iSpecial search sequences:                                                    \i \i
  205. \i \i    \\^  \\$  matches beg./end of line     \\?     match any single char        \i \i
  206. \i \i    \\<  \\>  matches beg./end of word     \\*     match 0 or more chars        \i \i
  207. \i \i    \\c     matches balanced C expression \\\\     matches a \\                  \i \i
  208. \i \i    \\[..]  matches one of a set          \\n     matches a newline            \i \i
  209. \i \i    \\+     matches 0 or more of the character which follows the \\+           \i \i
  210. \i \iSpecial replace sequences:                                                   \i \i
  211. \i \i    \\&     replaced with text which matched search string                    \i \i
  212. \i \i    \\0 - 9 replaced with text which matched Nth \\*, \\?, \\c, \\+, or \\[..]     \i \i
  213. \i \i    \\\\     replaced with \\               \\n     replaced with newline        \i \i
  214. }
  215.  
  216. {Names
  217. \i   Help Screen    turn off with ^KH    prev. screen ^[,    next screen ^[.     \i
  218. \i \i Hit TAB at file name prompts to generate menu of file names                 \i \i
  219. \i \i Or use up/down keys to access history of previously entered names           \i \i
  220. \i \i Special file names:                                                         \i \i
  221. \i \i      !command                 Pipe in/out of a shell command                \i \i
  222. \i \i      >>filename               Append to a file                              \i \i
  223. \i \i      -                        Read/Write to/from standard I/O               \i \i
  224. \i \i      filename,START,SIZE      Read/Write a part of a file/device            \i \i
  225. \i \i          Give START/SIZE in decimal (255), octal (0377) or hex (0xFF)       \i \i
  226. }
  227.  
  228. {Joe
  229. \i   Help Screen    turn off with ^KH    prev. screen ^[,                        \i
  230. \i \i Send bug reports to: Joe Allen (jhallen@world.std.com)                      \i \i
  231. }
  232.  
  233.  FOURTH SECTION: Key bindings:
  234.  
  235.  Section names you must provide:
  236.  
  237.     :main        For editing window
  238.     :prompt        For prompt lines
  239.     :query        For single-character query lines
  240.     :querya        Singe-character query for quote
  241.     :querysr    Search & Replace single-character query
  242.  
  243.  Other sections may be given as well for organization purposes or for
  244.  use with the '-keymap' option.
  245.  
  246.  Use:
  247.  :inherit name        To copy the named section into the current one
  248.  :delete key        To delete a key sequence from the current section
  249.  
  250.  Keys:
  251.  
  252.  Use ^@ through ^_ and ^? for Ctrl chars
  253.  Use SP for space
  254.  Use a TO b to generate a range of characters
  255.  
  256.  You can also use termcap string capability names.  For example:
  257.  
  258.     .ku        Up
  259.     .kd        Down
  260.     .kl        Left
  261.     .kr        Right
  262.     .kh        Home
  263.     .kH        End
  264.     .kI        Insert
  265.     .kD        Delete
  266.     .kP        PgUp
  267.     .kN        PgDn
  268.     .k1 - .k9    F1 - F9
  269.     .k0        F0 or F10
  270.     .k;        F10
  271.  
  272.  Macros:
  273.  
  274.  Simple macros can be made by comma seperating 2 or more command names.  For
  275.  example:
  276.  
  277.  bof,bol    ^T Z        Goto beginning of last line
  278.  
  279.  Also quoted matter is typed in literally:
  280.  
  281.  bol,">",dnarw    .k1        Quote news article line
  282.  
  283.  Macros may cross lines if they end with ,
  284.  
  285. :windows        Bindings common to all windows
  286. type        ^@ TO          Type a character
  287. abort        ^C        Abort window
  288. abort        ^K Q
  289. abort        ^K ^Q
  290. abort        ^K q
  291. arg        ^K \        Repeat next command
  292. explode        ^K I        Show all windows or show only one window
  293. explode        ^K ^I
  294. explode        ^K i
  295. help        ^K H        Help menu
  296. help        ^K ^H
  297. help        ^K h
  298. hnext        ^[ .        Next help window
  299. hprev        ^[ ,        Previous help window
  300. math        ^[ m        Calculator
  301. math        ^[ M        Calculator
  302. math        ^[ ^M        Calculator
  303. msg        ^[ h        Display a message
  304. msg        ^[ H        Display a message
  305. msg        ^[ ^H        Display a message
  306. nextw        ^K N        Goto next window
  307. nextw        ^K ^N
  308. nextw        ^K n
  309. pgdn        .kN        Screen down
  310. pgdn        ^V
  311. pgdn        ^[ [ 6 ~
  312. pgup        .kP        Screen up
  313. pgup        ^U
  314. pgup        ^[ [ 5 ~
  315. play        ^K 0 TO 9    Execute macro
  316. prevw        ^K P        Goto previous window
  317. prevw        ^K ^P
  318. prevw        ^K p
  319. query        ^K ?        Macro query insert
  320. record        ^K [        Record a macro
  321. retype        ^R        Refresh screen
  322. rtn        ^M        Return
  323. shell        ^K Z        Shell escape
  324. shell        ^K ^Z
  325. shell        ^K z
  326. stop        ^K ]        Stop recording
  327.  
  328. :main            Text editing window
  329. :inherit windows
  330.  
  331.  Spell-check macros
  332.  
  333.  
  334. filt,"cat >ispell.tmp;ispell ispell.tmp </dev/tty >/dev/tty;cat ispell.tmp;/bin/rm ispell.tmp",rtn,retype    ^[ l
  335.  
  336. psh,nextword,markk,prevword,markb,filt,
  337. "cat >ispell.tmp;ispell ispell.tmp </dev/tty >/dev/tty;tr -d <ispell.tmp '\\n';/bin/rm ispell.tmp",
  338. rtn,retype,nextword    ^[ n    Spell check word
  339.  
  340.  
  341.  Extra functions not really part of JOE user interface:
  342.  
  343. delbol        ^[ o        Delete to beginning of line
  344. delbol        ^[ O        Delete to beginning of line
  345. delbol        ^[ ^O        Delete to beginning of line
  346. dnslide        ^[ z        Scroll down one line
  347. dnslide        ^[ Z        Scroll down one line
  348. dnslide        ^[ ^Z        Scroll down one line
  349. edit,rtn,filt,
  350. query,parserr    ^[ c        Compile
  351. edit,rtn,filt,
  352. query,parserr    ^[ C        Compile
  353. edit,rtn,filt,
  354. query,parserr    ^[ ^C        Compile
  355. execmd        ^[ x        Prompt for command to execute
  356. execmd        ^[ X        Prompt for command to execute
  357. execmd        ^[ ^X        Prompt for command to execute
  358. isrch        ^[ s        Forward incremental search
  359. isrch        ^[ S        Forward incremental search
  360. isrch        ^[ ^S        Forward incremental search
  361. notmod        ^[ ~        Not modified
  362. nxterr        ^[ =        To next error
  363. parserr        ^[ e        Parse errors in current buffer
  364. parserr        ^[ E        Parse errors in current buffer
  365. parserr        ^[ ^E        Parse errors in current buffer
  366. prverr        ^[ -        To previous error
  367. rsrch        ^[ r        Backward incremental search
  368. rsrch        ^[ R        Backward incremental search
  369. rsrch        ^[ ^R        Backward incremental search
  370. run        ^[ !        Run a program in a window
  371. tomarkb        ^[ b        Go to beginning of marked block
  372. tomarkb        ^[ ^B        Go to beginning of marked block
  373. tomarkb        ^[ B        Go to beginning of marked block
  374. tomarkk        ^[ k        Go to end of marked block
  375. tomarkk        ^[ ^K        Go to end of marked block
  376. tomarkk        ^[ K        Go to end of marked block
  377. txt        ^[ i        Prompt for text and insert it
  378. txt        ^[ ^I        Prompt for text and insert it
  379. txt        ^[ I        Prompt for text and insert it
  380. upslide        ^[ w        Scroll up one line
  381. upslide        ^[ ^W        Scroll up one line
  382. upslide        ^[ W        Scroll up one line
  383. yankpop        ^[ y        Undelete text
  384. yankpop        ^[ ^Y        Undelete text
  385. yankpop        ^[ Y        Undelete text
  386.  
  387.  bufed        ^[ d        Menu of buffers
  388.  pbuf        ^[ .        Next buffer
  389.  nbuf        ^[ ,        Prev buffer
  390.  query        ^[ q        Quoted insert
  391.  byte        ^[ n        Goto byte
  392.  col        ^[ c        Goto column
  393.  abortbuf    ^[ k        Kill current buffer- don't mess with windows
  394.  ask        ^[ a        Ask to save current buffer
  395.  bop        ^[ p        Backwards paragraph
  396.  bos        ^[ x        Bottom of screen
  397.  copy        ^[ ^W        Copy block into yank
  398.  dupw        ^[ \        Split window
  399.  eop        ^[ n        Forwards paragraph
  400.  format        ^[ j        Format paragraph ignore block
  401.  markl        ^[ l        Mark line
  402.  nmark        ^[ @        Turn off ^KB ^KK
  403.  pop        ^[ >        Pop ^KB ^KK
  404.  psh        ^[ <        Push ^KB ^KK
  405.  swap        ^[ x        Swap ^KB and cursor
  406.  tomarkbk    ^[ g        Switch between beginning and end of marked
  407.  tos        ^[ e        Top of screen
  408.  tw0        ^[ 0        Kill current window (orphans buffer)
  409.  tw1        ^[ 1        Kill all other windows (orphans buffers)
  410.  uarg        ^[ u        Universal argument
  411.  yank        ^[ ^Y        Undelete previous text
  412.  yapp        ^[ w        Append next delete to previous yank
  413.  
  414.  Standard JOE user interface
  415.  
  416. quote8        ^\        Enter Meta chars
  417. quote        `        Enter Ctrl chars
  418.  
  419. backs        ^?        Backspace
  420. backs        ^H
  421. backw        ^O        Backspace word
  422. bknd        ^K '        Shell window
  423. blkcpy        ^K C        Copy marked block
  424. blkcpy        ^K ^C
  425. blkcpy        ^K c
  426. blkdel        ^K Y        Delete marked block
  427. blkdel        ^K ^Y
  428. blkdel        ^K y
  429. blkmove        ^K M        Move marked block
  430. blkmove        ^K ^M
  431. blkmove        ^K m
  432. blksave        ^K W        Save marked block
  433. blksave        ^K ^W
  434. blksave        ^K w
  435. bof        ^K U        Goto beginning of file
  436. bof        ^K ^U
  437. bof        ^K u
  438. bol        .kh        Goto beginning of line
  439. bol        ^A
  440. center        ^K A        Center line
  441. center        ^K ^A
  442. center        ^K a
  443. crawll        ^K <        Pan left
  444. crawlr        ^K >        Pan right
  445. delch        .kD        Delete character
  446. delch        ^D
  447. deleol        ^J        Delete to end of line
  448. dellin        ^Y        Delete entire line
  449. delw        ^W        Delete word to right
  450. dnarw        .kd        Go down
  451. dnarw        ^N
  452. dnarw        ^[ O B
  453. dnarw        ^[ [ B
  454. edit        ^K E        Edit a file
  455. edit        ^K ^E
  456. edit        ^K e
  457. eof        ^K V        Go to end of file
  458. eof        ^K ^V
  459. eof        ^K v
  460. eol        .kH        Go to end of line
  461. eol        ^E
  462. exsave        ^K X        Save and exit
  463. exsave        ^K ^X
  464. exsave        ^K x
  465. ffirst        ^K F        Find first
  466. ffirst        ^K ^F
  467. ffirst        ^K f
  468. filt        ^K /        Filter block
  469. fnext        ^L        Find next
  470. fmtblk        ^K J        Format paragraphs in block
  471. fmtblk        ^K ^J
  472. fmtblk        ^K j
  473. gomark        ^[ 0 TO 9    Goto bookmark
  474. groww        ^K G        Grow window
  475. groww        ^K ^G
  476. groww        ^K g
  477. insc        .kI        Insert a space
  478.  insc        ^@
  479. insf        ^K R        Insert a file
  480. insf        ^K ^R
  481. insf        ^K r
  482. lindent        ^K ,        Indent to left
  483. line        ^K L        Goto line no.
  484. line        ^K ^L
  485. line        ^K l
  486. ltarw        .kl        Go left
  487. ltarw        ^B
  488. ltarw        ^[ O D
  489. ltarw        ^[ [ D
  490. markb        ^K B        Set beginning of marked block
  491. markb        ^K ^B
  492. markb        ^K b
  493. markk        ^K K        Set end of marked block
  494. markk        ^K ^K
  495. markk        ^K k
  496. mode        ^T        Options menu
  497. nextpos        ^K =        Goto next position in position history
  498. nextword    ^X        Goto next word
  499. open        ^]        Split line
  500. prevpos        ^K -        Previous position in history
  501. prevword    ^Z        Previous word
  502. redo        ^^        Redo changes
  503. rindent        ^K .        Indent to right
  504. rtarw        .kr        Go right
  505. rtarw        ^F
  506. rtarw        ^[ O C
  507. rtarw        ^[ [ C
  508. save        ^K D        Save file
  509. save        ^K S
  510. save        ^K ^D
  511. save        ^K ^S
  512. save        ^K d
  513. save        ^K s
  514. setmark        ^[ ^[        Set bookmark
  515. shrinkw        ^K T        Shrink window
  516. shrinkw        ^K ^T
  517. shrinkw        ^K t
  518. splitw        ^K O        Split window
  519. splitw        ^K ^O
  520. splitw        ^K o
  521. stat        ^K SP        Show status
  522. tag        ^K ;        Tags file search
  523. tomatch        ^G        Goto matching parenthasis
  524. undo        ^_        Undo changes
  525. uparw        .ku        Go up
  526. uparw        ^P
  527. uparw        ^[ O A
  528. uparw        ^[ [ A
  529.  
  530. :prompt            Prompt windows
  531. :inherit main
  532. complete    ^I
  533.  
  534. :menu            Selection menus
  535. :inherit windows
  536. backsmenu    ^?
  537. backsmenu    ^H
  538. bofmenu        ^K U
  539. bofmenu        ^K ^U
  540. bofmenu        ^K u
  541. bolmenu        .kh
  542. bolmenu        ^A
  543. dnarwmenu    .kd
  544. dnarwmenu    ^N
  545. dnarwmenu    ^[ [ B
  546. dnarwmenu    ^[ O B
  547. eofmenu        ^K V
  548. eofmenu        ^K ^V
  549. eofmenu        ^K v
  550. eolmenu        .kH
  551. eolmenu        ^E
  552. ltarwmenu    .kl
  553. ltarwmenu    ^B
  554. ltarwmenu    ^[ [ D
  555. ltarwmenu    ^[ O D
  556. rtarwmenu    .kr
  557. rtarwmenu    ^F
  558. rtarwmenu    ^[ [ C
  559. rtarwmenu    ^[ O C
  560. rtn        SP
  561. rtn        ^I
  562. rtn        ^K H
  563. rtn        ^K h
  564. rtn        ^K ^H
  565. uparwmenu    .ku
  566. uparwmenu    ^P
  567. uparwmenu    ^[ [ A
  568. uparwmenu    ^[ O A
  569.  
  570. :query            Single-key query window
  571. :inherit windows
  572.  
  573. :querya            Single-key query window for quoting
  574. type        ^@ TO  
  575.  
  576. :querysr        Search & replace query window
  577. type        ^@ TO  
  578.