home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / gnu / emacs / help / 5090 < prev    next >
Encoding:
Text File  |  1992-12-15  |  1.5 KB  |  40 lines

  1. Newsgroups: gnu.emacs.help
  2. Path: sparky!uunet!spool.mu.edu!yale.edu!ira.uka.de!math.fu-berlin.de!informatik.tu-muenchen.de!lan!teege
  3. From: teege@informatik.tu-muenchen.de (Gunnar Teege)
  4. Subject: Re: Horizantal scrol (how to get rid of $ and see what I am typing)
  5. In-Reply-To: yusuf@ils.nwu.edu's message of Mon, 14 Dec 1992 17:36:17 GMT
  6. References: <1992Dec14.173617.2804@ils.nwu.edu>
  7. Sender: news@Informatik.TU-Muenchen.DE (USENET Newssystem)
  8. Organization: Inst. fuer Informatik, TU Muenchen, Germany
  9. Date: Tue, 15 Dec 1992 21:07:54 GMT
  10. Message-ID: <TEEGE.92Dec15160754@unknown.informatik.tu-muenchen.de>
  11. Lines: 27
  12.  
  13. >>>>> On Mon, 14 Dec 1992 17:36:17 GMT, yusuf@ils.nwu.edu (Yusuf
  14. > Pisan) said:
  15.  
  16.  
  17. > When I use split-window-horizontally, I get a dollar sign for lines
  18. > that are "too long" instead of the usual way emacs wraps lines by
  19. > using backslash.
  20.  
  21. > When I open a file as read only the only way to see the rest of the
  22. > line is by enalrging the window :-(.
  23.  
  24. This truncating feature can be controlled by setting the variable
  25. 'truncate-lines'. In my .emacs i define the following command:
  26.  
  27. (defun toggle-truncate ()
  28.   (interactive)
  29.   (setq truncate-lines (not truncate-lines)))
  30.  
  31. and bind it to a key sequence. Thus I can easily toggle between
  32. truncated lines and wrapped lines. After toggling it is sometimes
  33. necessary to force a redisplay by C-l to see the effects.
  34.  
  35. Hope that helps
  36.  
  37. Gunnar Teege   Inst. fuer Informatik, Technische Universitaet Muenchen
  38.                PO-Box 202420, 8000 Muenchen 2, Germany
  39. teege@informatik.tu-muenchen.de       Tel: +49 89 450552 25
  40.