From mboxrd@z Thu Jan 1 00:00:00 1970 From: Good Bad Subject: Re: org-mode is turning off soft word wrapping. Date: Thu, 23 Apr 2009 06:18:18 -0700 (PDT) Message-ID: <173767.55920.qm@web45106.mail.sp1.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Lwyov-0007JD-Nc for emacs-orgmode@gnu.org; Thu, 23 Apr 2009 09:18:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Lwyon-0007HX-5t for emacs-orgmode@gnu.org; Thu, 23 Apr 2009 09:18:28 -0400 Received: from [199.232.76.173] (port=35312 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Lwyom-0007HP-VP for emacs-orgmode@gnu.org; Thu, 23 Apr 2009 09:18:21 -0400 Received: from n78.bullet.mail.sp1.yahoo.com ([98.136.44.42]:37905) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Lwyom-0004fR-C3 for emacs-orgmode@gnu.org; Thu, 23 Apr 2009 09:18:20 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: bernt@norang.ca Cc: Emacs Org-mode Bernt Hansen norang.ca> writes: > Good Bad yahoo.com> writes: > > When I visit a text file, a C file or a TeX file, it is in soft word wrapping > > mode, i.e. long lines get wrapped, but without really inserting newlines. > > > > But when I visit an org file, it is not in word wrapping mode, i.e. longs lines > > never gets wrapped, you can't see the whole line if the line is too long. > > > > 1. How do I turn on soft word wrapping in org-mode? > > I have a function key mapped to this. There is a function > (set-truncate-lines) that toggles wrapping on and off. > > ,----[ from my .emacs ] > | (global-set-key (kbd "") 'set-truncate-lines) > `---- > [...] I think it is toggle-truncate-lines. set-truncate-lines is not defined in my Emacs23. ;; keybinding for toggling soft word wrapping mode (global-set-key (kbd "") 'toggle-truncate-lines) ;; turn on soft wrapping mode for org mode (add-hook 'org-mode-hook (lambda () (setq truncate-lines nil))) http://www.emacswiki.org/emacs/TruncateLines