Hi all, is it possible to instrument org-mode to automatically truncate lines only on "regular" text, i.e., outside table and source regions? I know why org-mode disables line truncation, but to me it is quite annoying when dealing with long text lines. Thanks, Luca
[-- Attachment #1: Type: text/plain, Size: 474 bytes --] How about adding (lambda () (toggle-truncate-lines 1)) to org-mode-hooks in your EMACS init file? -- Bill On Wed, Sep 22, 2021 at 2:59 AM Luca Ferrari <fluca1978@gmail.com> wrote: > Hi all, > is it possible to instrument org-mode to automatically truncate lines > only on "regular" text, i.e., outside table and source regions? > I know why org-mode disables line truncation, but to me it is quite > annoying when dealing with long text lines. > > Thanks, > Luca > > [-- Attachment #2: Type: text/html, Size: 992 bytes --]
On Wed, Sep 22, 2021 at 3:49 PM Bill Burdick <bill.burdick@gmail.com> wrote:
>
> How about adding
>
> (lambda () (toggle-truncate-lines 1))
>
> to org-mode-hooks in your EMACS init file?
isn't this the same as M-x toggle-truncate-lines ? Because it will
truncate every line, but I'm searching for a way to truncate only
text, and not tables nor code.
AM I misunderstanding your suggestion?
Luca
[-- Attachment #1: Type: text/plain, Size: 584 bytes --] Gah, sorry about that -- I didn't read your message carefully enough! -- Bill On Thu, Sep 23, 2021 at 4:56 AM Luca Ferrari <fluca1978@gmail.com> wrote: > On Wed, Sep 22, 2021 at 3:49 PM Bill Burdick <bill.burdick@gmail.com> > wrote: > > > > How about adding > > > > (lambda () (toggle-truncate-lines 1)) > > > > to org-mode-hooks in your EMACS init file? > > isn't this the same as M-x toggle-truncate-lines ? Because it will > truncate every line, but I'm searching for a way to truncate only > text, and not tables nor code. > AM I misunderstanding your suggestion? > > Luca > [-- Attachment #2: Type: text/html, Size: 1151 bytes --]
almost as if truncate line feature should be a text property? good idea to take up with devs if no solution arrives. source blocks have c-c '; idk about tables. perhaps you could at least have ugliness in the outline but correctness in editing. On 9/23/21, Bill Burdick <bill.burdick@gmail.com> wrote: > Gah, sorry about that -- I didn't read your message carefully enough! > > > -- Bill > > > On Thu, Sep 23, 2021 at 4:56 AM Luca Ferrari <fluca1978@gmail.com> wrote: > >> On Wed, Sep 22, 2021 at 3:49 PM Bill Burdick <bill.burdick@gmail.com> >> wrote: >> > >> > How about adding >> > >> > (lambda () (toggle-truncate-lines 1)) >> > >> > to org-mode-hooks in your EMACS init file? >> >> isn't this the same as M-x toggle-truncate-lines ? Because it will >> truncate every line, but I'm searching for a way to truncate only >> text, and not tables nor code. >> AM I misunderstanding your suggestion? >> >> Luca >> > -- The Kafka Pandemic Please learn what misopathy is. https://thekafkapandemic.blogspot.com/2013/10/why-some-diseases-are-wronged.html