home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / jove-4.16-bin.lha / lib / jove / jove.rc < prev    next >
Text File  |  1996-10-12  |  3KB  |  80 lines

  1. # This standard system-wide initialization file provides various
  2. # reasonable defaults. However, it is probably best seen as a starting
  3. # point, with examples of interesting possibilities, from which
  4. # sysadmins can hack their own versions.
  5.  
  6. pushlibd
  7.  
  8. # This macro deletes the line containing the cursor.
  9. # It is used in several of the jove.rc.TERM files and  is intended
  10. # for binding to the delete-line key on terminals which have it.
  11. # It is placed in the kill ring for subsequent yanking.
  12. define-macro kill-line ^[xbeginning-of-line^M^[xset-mark^M^[xnext-line^M^[xkill-region^M^[xpop-mark^M
  13.  
  14. # Set fill mode when Jove is fired up automatically by certain
  15. # mail/news readers.
  16. 1 auto-execute-command auto-fill-mode /tmp/\{Re\|article\|rnmail\|pn\}
  17.  
  18. # The following is if you prefer fill-mode to be on for all
  19. # files except the ones you want it off for (but on the other hand it could
  20. # be argued that defaults in editors should be the "least surprising"
  21. # alternative).
  22.  
  23. # Sets auto-fill-mode for every file and then turns it off as required.
  24. # 1 auto-execute-command auto-fill-mode .*
  25. # 0 auto-execute-command auto-fill-mode .*\.[lcChyfp]$\|.*\.lisp$\|.*\.scm$\|.*\.c++$
  26.  
  27. # set various language modes.
  28. 1 auto-execute-command c-mode .*\.[cChy]$\|.*\.c++$
  29. 1 auto-execute-command lisp-mode .*\.l$\|.*\.lisp$\|.*\.scm$
  30. # all the languages need show-match-mode.
  31. 1 auto-execute-command show-match-mode .*\.[lcChyfp]$\|.*\.lisp$\|.*\.scm$\|.*\.c++$
  32.  
  33. # if you have job control, this puts Jove out of the way temporarily.
  34. bind-to-key pause-jove ^[S
  35. bind-to-key pause-jove ^[s
  36.  
  37. # This is for the shell window. Supports sh, csh and ksh.
  38. set process-prompt ^[^%$#]*[%$#] 
  39.  
  40. # The following apply to shell windows. Note the use of ^C^C, ^C^D etc.,
  41. # thus leaving ^D available for delete-next-character.
  42. # This conforms to current emacs usage.
  43. process-bind-to-key interrupt-process ^C^C
  44. process-bind-to-key eof-process ^C^D
  45. process-bind-to-key quit-process ^C^\
  46. process-bind-to-key stop-process ^C^Z
  47. process-bind-to-key dstop-process ^C^Y
  48.  
  49. # This makes the arrow keys work on most terminals.
  50. bind-to-key previous-line ^[[A
  51. bind-to-key next-line ^[[B
  52. bind-to-key forward-character ^[[C
  53. bind-to-key backward-character ^[[D
  54. bind-to-key previous-line ^[OA
  55. bind-to-key next-line ^[OB
  56. bind-to-key forward-character ^[OC
  57. bind-to-key backward-character ^[OD
  58.  
  59. # An alternative modeline with better usage of the space.
  60. set mode-line %[Jove%]%w%w%c(%M)%3c[%b:%n]%2c"%f"%c%i# %m*-%2c%p%2s%(%d%e(%t)%)
  61.  
  62. # Modern terminals do not need ^S/^Q for flow control.
  63. # The exceptions (e.g. vt100) should turn it off again in jove.rc.TERM.
  64. set allow-^S-and-^Q on
  65.  
  66. # Ancient UNIXes can mess up the screen with biff when mail arrives.
  67. # It does no harm to turn this on anyway.
  68. set disable-biff on
  69.  
  70. # This causes the previous file version to remain as '#filename~'.
  71. # set make-backup-files on
  72.  
  73. # source any TERMinal-specific rc file
  74. 1 source jove.rc.$TERM
  75.  
  76. # source local custom rc file, if present
  77. 1 source jove-local.rc
  78.  
  79. popd
  80.