nmode.init 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. % This is the "default" NMODE.INIT file. It will be evaluated when NMODE starts
  2. % up, unless the file *NMODE.INIT exists, in which case that file will be
  3. % evaluated instead. It is recommended that any personal NMODE.INIT file begin
  4. % with the form:
  5. %
  6. % (nmode-read-and-evaluate-file nmode-default-init-file-name)
  7. %
  8. % which will cause this file to be evaluated first.
  9. % Make the BACKSPACE key behave like Rubout!
  10. % Make M-BACKSPACE behave like M-Rubout!
  11. (remove-from-command-list 'Read-Only-Text-Command-List (x-char BACKSPACE))
  12. (remove-from-command-list 'Lisp-Command-List (x-char M-BACKSPACE))
  13. (add-to-command-list 'Text-Command-List
  14. (x-char BACKSPACE)
  15. 'delete-backward-character-command)
  16. (add-to-command-list 'Text-Command-List
  17. (x-char M-BACKSPACE)
  18. 'kill-backward-word-command)
  19. (add-to-command-list 'Lisp-Command-List
  20. (x-char BACKSPACE)
  21. 'delete-backward-hacking-tabs-command)
  22. (nmode-establish-current-mode)
  23. (when (not (funboundp 'nmode-define-softkey))
  24. (nmode-define-softkey 0 'exit-nmode "Exit")
  25. (nmode-define-softkey 1 'buffer-browser-command "Buffers")
  26. (nmode-define-softkey 2 'find-file-command "Find File")
  27. (nmode-define-softkey 3 'save-file-command "Save File")
  28. (if (not (funboundp 'browser-browser-command))
  29. (nmode-define-softkey 4 'browser-browser-command "Browsers")
  30. (nmode-define-softkey 4 'fill-paragraph-command "Fill Para")
  31. )
  32. (nmode-define-softkey 5 'pasemulate "Hulk")
  33. (nmode-define-softkey 6 'pasfiler "Filer")
  34. (nmode-define-softkey 8 (string (x-char ^!])) "Lisp-")
  35. (nmode-define-softkey 9 (string (x-char ^!\) #/X) "M-X")
  36. )