From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Unconditionally turn off Flyspell mode during export Date: Wed, 26 Mar 2014 13:31:08 -0400 Message-ID: <87ppl8rhnn.fsf@alphaville.bos.redhat.com> References: <86ha6mclcx.fsf@somewhere.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46334) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSrfo-0001Ho-75 for emacs-orgmode@gnu.org; Wed, 26 Mar 2014 13:31:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSrfe-0007Ve-Io for emacs-orgmode@gnu.org; Wed, 26 Mar 2014 13:31:32 -0400 Received: from plane.gmane.org ([80.91.229.3]:56857) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSrfe-0007VS-Ck for emacs-orgmode@gnu.org; Wed, 26 Mar 2014 13:31:22 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WSrfc-00025m-UJ for emacs-orgmode@gnu.org; Wed, 26 Mar 2014 18:31:20 +0100 Received: from nat-pool-bos-t.redhat.com ([66.187.233.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 Mar 2014 18:31:20 +0100 Received: from ndokos by nat-pool-bos-t.redhat.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 Mar 2014 18:31:20 +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: emacs-orgmode@gnu.org Sebastien Vauban writes: > Hello, > > I use Flyspell in all my text-mode and prog-mode buffers, hence as well > in my Org mode buffers -- as they ultimately derive from Text mode. > > I do that with: > > (add-hook 'text-mode-hook > (lambda () > (message "Turning on Flyspell in buffer `%s'" (buffer-name)) > (flyspell-mode 1))) > > Though, as you can see, that has the perverse impact that Flyspell gets > called (even multiple times) during the export process, when creating > copies of the source Org document: > > Turning on Flyspell in buffer `ecm.txt<2>' > Turning on Flyspell in buffer `ecm.txt<2><2>' > Turning on Flyspell in buffer ` *temp*' > Turning on Flyspell in buffer `ecm.html' > Saving file d:/ecm.html... > Wrote d:/ecm.html > > Is it possible to *automatically disable Flyspell during the export* > *process*, as it's completely useless (the export buffers are killed when > the export is done) and eats useful CPU cycles? > Advise org-export-as with an `around' piece of advice where you set the text-mode-hook to nil (or just delete the flyspell part) perhaps? Untested. -- Nick