home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / emacs / 3492 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  2.2 KB

  1. Path: sparky!uunet!cimshop!davidm
  2. From: davidm@consilium.com (David S. Masterson)
  3. Newsgroups: comp.emacs
  4. Subject: Re: using wordwrap with uemacs
  5. Message-ID: <DAVIDM.92Nov8181242@consilium.com>
  6. Date: 9 Nov 92 02:12:42 GMT
  7. References: <1346900001@igc.apc.org>
  8. Sender: root@cimshop.UUCP
  9. Distribution: comp
  10. Organization: Consilium Inc., Mountain View, California
  11. Lines: 50
  12. In-reply-to: crosenberg@igc.apc.org's message of 7 Nov 92 19:05:00 GMT
  13. X-Posting-Software: GNUS 3.13  [ NNTP-based News Reader for GNU Emacs ]
  14.  
  15. >>>>> On 7 Nov 92 19:05:00 GMT, crosenberg@igc.apc.org (Charlie Rosenberg)
  16. >>>>> said:
  17.  
  18. > Following the uemacs manul, (I am using 3.9), I entered Esc M and at the
  19. > global-mode-add prompt, I type wrap and press Enter.  The cursor goes to the
  20. > first line position, global-mode-add stays on the screen and I don't have
  21. > any wordwrap.  What am I doing wrong?
  22.  
  23. Hmm, I don't remember Esc-M to turn on wordwrap (probably because I've never
  24. gotten it to work).  I've always used ^XM to turn on one of the special modes
  25. and ^X^M to turn off one of the special modes.  The special modes are (that I
  26. remember off the top of my head):
  27.  
  28. WRAP - word wrap mode (^XF to set fill column)
  29. CMODE - special indentation mode for C programming
  30. EXACT - force searches to be case insensitive
  31. MAGIC - search patterns can include some regular expressions
  32. VIEW - disable commands that can change the buffer.
  33.  
  34. > Is there a way to turn off the status line at the bottom of the screen?
  35.  
  36. Not that I know of.
  37.  
  38. > Is there a way to start uemacs so that wordwrap will be the default?
  39.  
  40. Try putting something like this in your emacs.rc file:
  41.  
  42. 20    store-macro
  43.     set %rctmp &sin $cfname "."
  44.     !if &equ %rctmp 0
  45.         !return
  46.     !endif
  47.     set %rctmp &mid $cfname &add %rctmp 1 5
  48.     !if &or &seq %rctmp "c" &seq %rctmp "h"
  49.         add-mode "cmode"
  50.     !endif
  51.     !if &seq %rctmp "txt"
  52.         add-mode "wrap"
  53.     !endif
  54. !endm
  55. bind-to-key execute-macro-20    M-FNR
  56.  
  57. --
  58. ====================================================================
  59. David Masterson                    Consilium, Inc.
  60. (415) 691-6311                    640 Clyde Ct.
  61. davidm@consilium.com                Mtn. View, CA  94043
  62. ====================================================================
  63. "A mighty work deserves a mighty theme."
  64. -- Herman Melville
  65.