truncating long lones in Emacs (was emacs-20.3)
> Is there a way to stop emacs from
> wraping the text on the screen so that extra long lines do not wrap to the
> next line
To set this generally for all future buffers, pu this in ~/.emacs
(setq default-truncate-lines t)
For this buffer only, set the variable truncate-lines:
M-x set-variable [RET] truncate-lines [RET] t
Or stick this defun in your ~/.emacs and perhaps bind it to a key:
(defun toggle-truncate ()
"set or unset line truncation"
(interactive)
(if truncate-lines
(setq truncate-lines nil)
(setq truncate-lines t)))
--
Peter Galbraith, research scientist <GalbraithP@dfo-mpo.gc.ca>
Maurice Lamontagne Institute, Department of Fisheries and Oceans Canada
P.O. Box 1000, Mont-Joli Qc, G5H 3Z4 Canada. 418-775-0852 FAX: 775-0546
6623'rd GNU/Linux user at the Counter - http://counter.li.org/
Reply to: