From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Org-mode and fill-nobreak-predicate Date: Sun, 04 Jan 2015 19:35:31 +0100 Message-ID: <877fx275sc.fsf@nicolasgoaziou.fr> References: <87ppaueqkg.fsf@wmi.amu.edu.pl> <87bnme77v5.fsf@nicolasgoaziou.fr> <87k312e7rf.fsf@wmi.amu.edu.pl> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38442) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7q0Y-0000tS-3c for emacs-orgmode@gnu.org; Sun, 04 Jan 2015 13:34:34 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y7q0U-0008Jm-Ti for emacs-orgmode@gnu.org; Sun, 04 Jan 2015 13:34:34 -0500 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:57924) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7q0U-0008IX-NT for emacs-orgmode@gnu.org; Sun, 04 Jan 2015 13:34:30 -0500 In-Reply-To: <87k312e7rf.fsf@wmi.amu.edu.pl> (Marcin Borkowski's message of "Sun, 04 Jan 2015 19:11:00 +0100") 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: Marcin Borkowski Cc: Org-Mode mailing list Marcin Borkowski writes: > On 2015-01-04, at 18:50, Nicolas Goaziou wrote: > >> Hello, >> >> Marcin Borkowski writes: >> >>> I've just installed Emacs 25 (I only had 24.3 before), and was eager to >>> try out some cool new features. I put this in my init.el: >>> >>> (add-hook 'fill-nobreak-predicate #'fill-single-char-nobreak-p) >>> >>> But it won't work in Org-mode: it turns out that Org sets >>> fill-nobreak-predicate, too. What should I do? Should I put my >>> add-hook /in the org-mode-hook/? >> >> You need to set `fill-nobreak-predicate' before Org is loaded, or add >> the hook locally within `org-mode-hook'. > > Thanks! I'll try to set it up at the beginning of my init.el and see > what happens. BTW, `fill-nobreak-predicate' is not a hook. Regards,