emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to get "Wrap at Window Edge" in org-mode?
@ 2012-05-22 15:49 Marius Hofert
  2012-05-22 15:53 ` Russell Adams
  2012-05-22 17:21 ` Bastien
  0 siblings, 2 replies; 8+ messages in thread
From: Marius Hofert @ 2012-05-22 15:49 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

I am working with Xubuntu 12.04 on a MacBook Air (4,1) with org-mode version
7.8.09. I use the following code to get "Wrap at Window Edge" in
org-agenda-mode:

,----
| (add-hook 'org-agenda-mode-hook
| 	  '(lambda()
| 	     (if truncate-lines (toggle-truncate-lines -1))
| 	     ))
`----

How can I get "Wrap at Window Edge" in all .org files? The only idea I found is
https://plus.google.com/u/0/113859563190964307534/posts/RVBN7KvQtB7 but that
unfortunately did not work.

Cheers,

Marius

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to get "Wrap at Window Edge" in org-mode?
  2012-05-22 15:49 Marius Hofert
@ 2012-05-22 15:53 ` Russell Adams
  2012-05-22 17:21 ` Bastien
  1 sibling, 0 replies; 8+ messages in thread
From: Russell Adams @ 2012-05-22 15:53 UTC (permalink / raw)
  To: emacs-orgmode

On Tue, May 22, 2012 at 05:49:00PM +0200, Marius Hofert wrote:
> Hi,
>
> I am working with Xubuntu 12.04 on a MacBook Air (4,1) with org-mode version
> 7.8.09. I use the following code to get "Wrap at Window Edge" in
> org-agenda-mode:
>
> ,----
> | (add-hook 'org-agenda-mode-hook
> | 	  '(lambda()
> | 	     (if truncate-lines (toggle-truncate-lines -1))
> | 	     ))
> `----
>
> How can I get "Wrap at Window Edge" in all .org files? The only idea I found is
> https://plus.google.com/u/0/113859563190964307534/posts/RVBN7KvQtB7 but that
> unfortunately did not work.
>
> Cheers,
>
> Marius
>

This will set wrapping globally from your .emacs file:

(setq-default truncate-lines nil)



------------------------------------------------------------------
Russell Adams                            RLAdams@AdamsInfoServ.com

PGP Key ID:     0x1160DCB3           http://www.adamsinfoserv.com/

Fingerprint:    1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to get "Wrap at Window Edge" in org-mode?
@ 2012-05-22 16:14 Marius Hofert
  2012-05-22 16:51 ` Russell Adams
  2012-05-22 17:16 ` Marius Hofert
  0 siblings, 2 replies; 8+ messages in thread
From: Marius Hofert @ 2012-05-22 16:14 UTC (permalink / raw)
  To: RLAdams; +Cc: Emacs org-mode

Dear Russell,

I thought so, too, but it does not properly wrap standard .org files (including
sections etc.). Instead of Wrap at Window Edge, I still obtain "Truncate Long Lines"
mode in .org files.

Cheers,

Marius

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to get "Wrap at Window Edge" in org-mode?
  2012-05-22 16:14 How to get "Wrap at Window Edge" in org-mode? Marius Hofert
@ 2012-05-22 16:51 ` Russell Adams
  2012-05-22 17:16 ` Marius Hofert
  1 sibling, 0 replies; 8+ messages in thread
From: Russell Adams @ 2012-05-22 16:51 UTC (permalink / raw)
  To: Emacs org-mode

The code segment you posed earlier with the lambda statement may
override that behavior. Have you tried removing that and restarting
emacs?

On Tue, May 22, 2012 at 06:14:07PM +0200, Marius Hofert wrote:
> Dear Russell,
>
> I thought so, too, but it does not properly wrap standard .org files (including
> sections etc.). Instead of Wrap at Window Edge, I still obtain "Truncate Long Lines"
> mode in .org files.
>
> Cheers,
>
> Marius
>


------------------------------------------------------------------
Russell Adams                            RLAdams@AdamsInfoServ.com

PGP Key ID:     0x1160DCB3           http://www.adamsinfoserv.com/

Fingerprint:    1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to get "Wrap at Window Edge" in org-mode?
  2012-05-22 16:14 How to get "Wrap at Window Edge" in org-mode? Marius Hofert
  2012-05-22 16:51 ` Russell Adams
@ 2012-05-22 17:16 ` Marius Hofert
  1 sibling, 0 replies; 8+ messages in thread
From: Marius Hofert @ 2012-05-22 17:16 UTC (permalink / raw)
  To: RLAdams; +Cc: Emacs org-mode

Dear Russell,

thanks for helping.

Yes. I even removed ~/.emacs.desktop and restarted. Still, a standard 
.org file is shown in "Truncate Long Lines" mode instead of (the overall 
emacs default) "Wrap at Window Edge".

Cheers,

Marius


-- 
ETH Zurich
Dr. Marius Hofert
RiskLab, Department of Mathematics
HG E 65.2
Rämistrasse 101
8092 Zurich
Switzerland

Phone +41 44 632 2423
http://www.math.ethz.ch/~hofertj

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to get "Wrap at Window Edge" in org-mode?
  2012-05-22 15:49 Marius Hofert
  2012-05-22 15:53 ` Russell Adams
@ 2012-05-22 17:21 ` Bastien
  2012-05-22 17:31   ` Marius Hofert
  2012-05-23  7:56   ` Carsten Dominik
  1 sibling, 2 replies; 8+ messages in thread
From: Bastien @ 2012-05-22 17:21 UTC (permalink / raw)
  To: Marius Hofert; +Cc: emacs-orgmode

Hi Marius,

Marius Hofert <marius.hofert@math.ethz.ch> writes:

> I am working with Xubuntu 12.04 on a MacBook Air (4,1) with org-mode version
> 7.8.09. I use the following code to get "Wrap at Window Edge" in
> org-agenda-mode:
>
> ,----
> | (add-hook 'org-agenda-mode-hook
> | 	  '(lambda()
> | 	     (if truncate-lines (toggle-truncate-lines -1))
> | 	     ))
> `----
>
> How can I get "Wrap at Window Edge" in all .org files?

(setq org-startup-truncated nil)

HTH,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to get "Wrap at Window Edge" in org-mode?
  2012-05-22 17:21 ` Bastien
@ 2012-05-22 17:31   ` Marius Hofert
  2012-05-23  7:56   ` Carsten Dominik
  1 sibling, 0 replies; 8+ messages in thread
From: Marius Hofert @ 2012-05-22 17:31 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

Hi Bastien,

Many thanks, that's exactly what I was looking for!

Cheers,

Marius

05/22/2012 07:21 PM, Bastien wrote:
> Hi Marius,
>
> Marius Hofert<marius.hofert@math.ethz.ch>  writes:
>
>> I am working with Xubuntu 12.04 on a MacBook Air (4,1) with org-mode version
>> 7.8.09. I use the following code to get "Wrap at Window Edge" in
>> org-agenda-mode:
>>
>> ,----
>> | (add-hook 'org-agenda-mode-hook
>> | 	  '(lambda()
>> | 	     (if truncate-lines (toggle-truncate-lines -1))
>> | 	     ))
>> `----
>>
>> How can I get "Wrap at Window Edge" in all .org files?
> (setq org-startup-truncated nil)
>
> HTH,
>

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to get "Wrap at Window Edge" in org-mode?
  2012-05-22 17:21 ` Bastien
  2012-05-22 17:31   ` Marius Hofert
@ 2012-05-23  7:56   ` Carsten Dominik
  1 sibling, 0 replies; 8+ messages in thread
From: Carsten Dominik @ 2012-05-23  7:56 UTC (permalink / raw)
  To: Bastien; +Cc: Marius Hofert, emacs-orgmode


On May 22, 2012, at 7:21 PM, Bastien wrote:

> Hi Marius,
> 
> Marius Hofert <marius.hofert@math.ethz.ch> writes:
> 
>> I am working with Xubuntu 12.04 on a MacBook Air (4,1) with org-mode version
>> 7.8.09. I use the following code to get "Wrap at Window Edge" in
>> org-agenda-mode:
>> 
>> ,----
>> | (add-hook 'org-agenda-mode-hook
>> | 	  '(lambda()
>> | 	     (if truncate-lines (toggle-truncate-lines -1))
>> | 	     ))
>> `----
>> 
>> How can I get "Wrap at Window Edge" in all .org files?
> 
> (setq org-startup-truncated nil)

The a reason why Org does wrap by default is to keep tables and code segments in good shape.  It would be nice if line truncation could be set locally with text properties, but that is currently not the case.

- Carsten

> 
> HTH,
> 
> -- 
> Bastien
> 

- Carsten

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2012-05-23  7:56 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-22 16:14 How to get "Wrap at Window Edge" in org-mode? Marius Hofert
2012-05-22 16:51 ` Russell Adams
2012-05-22 17:16 ` Marius Hofert
  -- strict thread matches above, loose matches on Subject: below --
2012-05-22 15:49 Marius Hofert
2012-05-22 15:53 ` Russell Adams
2012-05-22 17:21 ` Bastien
2012-05-22 17:31   ` Marius Hofert
2012-05-23  7:56   ` Carsten Dominik

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).