home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cimshop!davidm
- From: davidm@consilium.com (David S. Masterson)
- Newsgroups: comp.emacs
- Subject: Re: using wordwrap with uemacs
- Message-ID: <DAVIDM.92Nov8181242@consilium.com>
- Date: 9 Nov 92 02:12:42 GMT
- References: <1346900001@igc.apc.org>
- Sender: root@cimshop.UUCP
- Distribution: comp
- Organization: Consilium Inc., Mountain View, California
- Lines: 50
- In-reply-to: crosenberg@igc.apc.org's message of 7 Nov 92 19:05:00 GMT
- X-Posting-Software: GNUS 3.13 [ NNTP-based News Reader for GNU Emacs ]
-
- >>>>> On 7 Nov 92 19:05:00 GMT, crosenberg@igc.apc.org (Charlie Rosenberg)
- >>>>> said:
-
- > Following the uemacs manul, (I am using 3.9), I entered Esc M and at the
- > global-mode-add prompt, I type wrap and press Enter. The cursor goes to the
- > first line position, global-mode-add stays on the screen and I don't have
- > any wordwrap. What am I doing wrong?
-
- Hmm, I don't remember Esc-M to turn on wordwrap (probably because I've never
- gotten it to work). I've always used ^XM to turn on one of the special modes
- and ^X^M to turn off one of the special modes. The special modes are (that I
- remember off the top of my head):
-
- WRAP - word wrap mode (^XF to set fill column)
- CMODE - special indentation mode for C programming
- EXACT - force searches to be case insensitive
- MAGIC - search patterns can include some regular expressions
- VIEW - disable commands that can change the buffer.
-
- > Is there a way to turn off the status line at the bottom of the screen?
-
- Not that I know of.
-
- > Is there a way to start uemacs so that wordwrap will be the default?
-
- Try putting something like this in your emacs.rc file:
-
- 20 store-macro
- set %rctmp &sin $cfname "."
- !if &equ %rctmp 0
- !return
- !endif
- set %rctmp &mid $cfname &add %rctmp 1 5
- !if &or &seq %rctmp "c" &seq %rctmp "h"
- add-mode "cmode"
- !endif
- !if &seq %rctmp "txt"
- add-mode "wrap"
- !endif
- !endm
- bind-to-key execute-macro-20 M-FNR
-
- --
- ====================================================================
- David Masterson Consilium, Inc.
- (415) 691-6311 640 Clyde Ct.
- davidm@consilium.com Mtn. View, CA 94043
- ====================================================================
- "A mighty work deserves a mighty theme."
- -- Herman Melville
-