From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcin Borkowski Subject: Re: Org-mode and fill-nobreak-predicate Date: Sun, 04 Jan 2015 19:11:00 +0100 Message-ID: <87k312e7rf.fsf@wmi.amu.edu.pl> References: <87ppaueqkg.fsf@wmi.amu.edu.pl> <87bnme77v5.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34397) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7pdu-0004Ey-2g for emacs-orgmode@gnu.org; Sun, 04 Jan 2015 13:11:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y7pdq-0000Y2-1d for emacs-orgmode@gnu.org; Sun, 04 Jan 2015 13:11:10 -0500 Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:60324) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y7pdp-0000XO-R9 for emacs-orgmode@gnu.org; Sun, 04 Jan 2015 13:11:05 -0500 In-reply-to: <87bnme77v5.fsf@nicolasgoaziou.fr> 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: Nicolas Goaziou Cc: Org-Mode mailing list 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. > Regards, Best, -- Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Faculty of Mathematics and Computer Science Adam Mickiewicz University