[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: |
Alan Schmitt |
Subject: |
Re: [O] verbatim/code text and line breaks with auto fill mode |
Date: |
Sat, 08 Mar 2014 13:12:07 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) |
Nick Dokos <address@hidden> writes:
> Alan Schmitt <address@hidden> writes:
>
>> Hello,
>>
>> Is there a way to disable line breaks inside verbatim or code text when
>> using auto fill? For instance, if I type the following:
>>
>> This is an example of a long line when some stuff is code: ~1 + 2 + 3 =
>> 6~.
>>
>
> Untested, but you might be able to do something with
> auto-fill-inhibit-regexp.
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 ;-)
Best,
Alan
- [O] verbatim/code text and line breaks with auto fill mode, Alan Schmitt, 2014/03/07
- Re: [O] verbatim/code text and line breaks with auto fill mode, Nick Dokos, 2014/03/07
- Re: [O] verbatim/code text and line breaks with auto fill mode, Alan Schmitt, 2014/03/08
- Re: [O] verbatim/code text and line breaks with auto fill mode,
Alan Schmitt <=
- Re: [O] verbatim/code text and line breaks with auto fill mode, Sebastien Vauban, 2014/03/10
- Re: [O] verbatim/code text and line breaks with auto fill mode, Nicolas Goaziou, 2014/03/10
- Re: [O] verbatim/code text and line breaks with auto fill mode, Bastien, 2014/03/13
- Re: [O] verbatim/code text and line breaks with auto fill mode, Nicolas Goaziou, 2014/03/13
- Message not available
- Re: [O] verbatim/code text and line breaks with auto fill mode, Alan Schmitt, 2014/03/14
- Re: [O] verbatim/code text and line breaks with auto fill mode, Bastien, 2014/03/21
- Message not available
- Re: [O] verbatim/code text and line breaks with auto fill mode, Alan Schmitt, 2014/03/21
- Re: [O] verbatim/code text and line breaks with auto fill mode, R. Michael Weylandt <address@hidden>, 2014/03/18
- Re: [O] verbatim/code text and line breaks with auto fill mode, Michael Weylandt, 2014/03/24