home *** CD-ROM | disk | FTP | other *** search
/ High Voltage Shareware / high1.zip / high1 / DIR13 / XNOT14.ZIP / NOTGNU.ST < prev    next >
Text File  |  1993-10-04  |  3KB  |  84 lines

  1. ;
  2. ; Startup file for notGNU emacs (notgnu.st).
  3. ; This form of file can be loaded at anytime using
  4. ; the extended command load-file.
  5. ;
  6.  
  7. ; Default is to make backups; uncommenting the following
  8. ; line will turn backups off.
  9. (toggle-make-backups)
  10.  
  11.  
  12. ; I like to make sure I don't edit a file in 2 places
  13. ; the default is NOT to check so this turns it on
  14. (toggle-check-file-timestamp)
  15.  
  16.  
  17. ; Default is not to display linenumber in the modeline; 
  18. ; The following toggles line numbers on.
  19. (toggle-show-linenumber)
  20.  
  21. ; Default is to highlight the background on mouse selections.
  22. ; Uncomment if you want to highlight the foreground (text) instead:
  23. ; (set-select-highlight 'f)
  24.  
  25. ; My UNIX machines hate to see my C source with all those
  26. ; dang CR in them (network shared disks) - default is CR
  27. ; is written for all files, this disables CR from being written
  28. ; [Should remain disabled for DOS machines]
  29. ; (toggle-just-write-newline)
  30.  
  31.  
  32. ; GNU-like autocompletion is not set by default; the GNU-ness
  33. ; isn't perfect yet. :(  Uncomment if you are a die-hard GNU.
  34. ; (set-gnu)
  35.  
  36.  
  37. ; Default autosave interval is 15 seconds.
  38. ; Let's be a little more macho than that.
  39. if !DOS (set-autosave-inc '120)
  40.  
  41.  
  42. ; Various keybindings to make me happy
  43. ; "\^x" is ctrl-x
  44. ; "\F1" is function key F1
  45. ; "\Eo" is meta-o (or ESC-o)
  46. ; "\Kp-+" is keypad +
  47. ; "\Delete" is a named key
  48. ; "\SDelete" is shift + a named key
  49. ; "\CDelete" is control + a named key
  50.  
  51. (global-set-key "\F1"         'goto-line)
  52. (global-set-key "\F8"         'other-window)
  53. (global-set-key "\e+"         'enlarge-window)
  54. (global-set-key "\e-"         'shrink-window)
  55. (global-set-key "\^z"         'scroll-one-line-up)
  56. (global-set-key "\ez"         'scroll-one-line-down)
  57.  
  58. (global-set-key "\^x\^i"      'insert-file)
  59. (global-set-key "\^x!"        'shell-command)
  60. (global-set-key "\^xu"        'undo)
  61. (global-set-key "\^_"         'undo)
  62.  
  63. ; Uncomment the ones you like:
  64. ; (global-set-key "\efx"        'save-buffers-kill-emacs) ; Alt-F x
  65. ; (global-set-key "\Insert"     'set-mark-command)        ; A Demacs thing
  66.  
  67. ; These they will fail in the DOS version because
  68. ;   (1) these are not legal DOS commands or
  69. ;   (2) fkeys beyond 10 are not visible.
  70. ;
  71. ; ``if <os>'' and ``if !<os>'' are supported; case sensitive!
  72. ; Legal <os> values are DOS, Win3, WinNT, X11
  73.  
  74. if !DOS (global-set-key "\F2"         'shell-window)
  75. if !DOS (global-set-key "\F9"         'make)
  76. if !DOS (global-set-key "\F10"        'next-error)
  77. if !DOS (global-set-key "\F12"        'undo)
  78. if !DOS (global-set-key "\^x`"        'next-error)
  79. if !DOS (global-set-key "\SBackspace" 'backward-kill-word)
  80.  
  81. ; Uncomment the ones you like:
  82. ; if  DOS (global-set-key "\^z" 'shell-command)
  83. ; if !DOS (global-set-key "\^z" 'shell-window)
  84.