From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Weylandt Subject: Re: verbatim/code text and line breaks with auto fill mode Date: Mon, 24 Mar 2014 16:47:46 -0400 Message-ID: <784451E0-08A3-4F28-B020-08B14182A767@gmail.com> References: <87y50l91i7.fsf@alphaville.bos.redhat.com> Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42434) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSBmp-0006ii-26 for emacs-orgmode@gnu.org; Mon, 24 Mar 2014 16:48:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSBmj-0005Vo-GI for emacs-orgmode@gnu.org; Mon, 24 Mar 2014 16:47:58 -0400 Received: from mail-qa0-x231.google.com ([2607:f8b0:400d:c00::231]:56701) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSBmj-0005Tf-9z for emacs-orgmode@gnu.org; Mon, 24 Mar 2014 16:47:53 -0400 Received: by mail-qa0-f49.google.com with SMTP id j7so5850447qaq.8 for ; Mon, 24 Mar 2014 13:47:52 -0700 (PDT) Received: from [10.188.28.196] (mobile-198-228-195-069.mycingular.net. [198.228.195.69]) by mx.google.com with ESMTPSA id e4sm28241780qar.12.2014.03.24.13.47.49 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 24 Mar 2014 13:47:50 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org On Mar 18, 2014, at 18:35, "Michael Weylandt" w= rote:=20 >=20 > On Mar 8, 2014, at 7:12, Alan Schmitt wro= te: >>=20 >> 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: >>=20 >> #+begin_src emacs-lisp >> (add-hook 'org-mode-hook >> (lambda () >> (add-hook 'fill-nobreak-predicate 'org-in-verbatim-emphasis))) >> #+end_src >=20 > Is there an analogue like org-in-inline-src-p? I find the auto-fill breaks= inline (src_python{.......})=20 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.=20 Michael=