[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: |
Michael Weylandt |
Subject: |
Re: [O] verbatim/code text and line breaks with auto fill mode |
Date: |
Mon, 24 Mar 2014 16:47:46 -0400 |
On Mar 18, 2014, at 18:35, "Michael Weylandt" <address@hidden> wrote:
>
> On Mar 8, 2014, at 7:12, Alan Schmitt <address@hidden> 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
>
> Is there an analogue like org-in-inline-src-p? I find the auto-fill breaks
> inline (src_python{.......})
There doesn't appear to be a native org version, but I've used
(defun org-in-inline-src-p ()
(org-in-regexp org-babel-inline-src-block-regexp))
(add-hook 'org-mode-hook
(lambda () (add-hook 'fill-nobreak-predicate 'org-in-inline-src-p)))
And it seems to give a better auto-fill experience.
Michael
- Re: [O] verbatim/code text and line breaks with auto fill mode, (continued)
- 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, 2014/03/08
- 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 <=