[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] verbatim/code text and line breaks with auto fill mode
From: |
Nicolas Goaziou |
Subject: |
Re: [O] verbatim/code text and line breaks with auto fill mode |
Date: |
Mon, 10 Mar 2014 13:13:45 +0100 |
Hello,
Sebastien Vauban <sva-news-D0wtAvR13HarG/address@hidden>
writes:
> Alan Schmitt wrote:
>> I've continued looking into this, and it seems that what I want is use
>> `fill-nobreak-predicate'. This is what I ended up doing:
>>
>> #+begin_src emacs-lisp
>> (add-hook 'org-mode-hook
>> (lambda ()
>> (add-hook 'fill-nobreak-predicate 'org-in-verbatim-emphasis)))
>> #+end_src
>>
>> All the pieces were already there, it just took me a while to put them
>> together ;-)
>
> Shouldn't this be standard in Org, as it breaks LaTeX compilation
> otherwise?
This is not an Org problem, as verbatim objects can span over lines.
OTOH, `latex' back-end could remove newline characters from verbatim and
code contents.
Regards,
--
Nicolas Goaziou