From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Hooks and publishing Date: Thu, 27 Aug 2009 07:46:46 +0200 Message-ID: References: <87fxbe9p7v.fsf@gmx.de> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MgYu8-0003gJ-9Z for emacs-orgmode@gnu.org; Thu, 27 Aug 2009 02:56:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MgYu3-0003es-JA for emacs-orgmode@gnu.org; Thu, 27 Aug 2009 02:56:15 -0400 Received: from [199.232.76.173] (port=41459 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MgYu3-0003ei-A3 for emacs-orgmode@gnu.org; Thu, 27 Aug 2009 02:56:11 -0400 Received: from mx20.gnu.org ([199.232.41.8]:15353) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MgYu2-0004uq-Pu for emacs-orgmode@gnu.org; Thu, 27 Aug 2009 02:56:11 -0400 Received: from mail-ew0-f217.google.com ([209.85.219.217]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MgYu2-0001vg-3Z for emacs-orgmode@gnu.org; Thu, 27 Aug 2009 02:56:10 -0400 Received: by ewy17 with SMTP id 17so295070ewy.2 for ; Wed, 26 Aug 2009 23:56:08 -0700 (PDT) In-Reply-To: <87fxbe9p7v.fsf@gmx.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastian Rose Cc: Emacs-orgmode mailing list On Aug 27, 2009, at 12:37 AM, Sebastian Rose wrote: > Hi, > > > I have this in one of my setup files: > > (add-hook 'text-mode-hook 'turn-on-flyspell) > ;; (add-hook 'org-mode-hook 'turn-on-flyspell) > (add-hook 'message-mode-hook 'turn-on-flyspell) > > As you can see, the second line is already commented. But it seems, > org-mode runs text-mode-hook, too. This slows down export (especially, > if ispell is not yet installed on a new system...). > > > Is it possible (and does it make sense) to load all Org-files without > running any of the hooks? Org-mode is derived from outline-mode, which is derived from text mode. A derived mode runs all the hooks from the parent modes. I don't know how to turn this off, but you can work around this by changing the function you put into the text-mode-hook: (defun my-turn-on-flyspell-not-in-org-though () (or (eq major-mode 'org-mode) (turn-on-flyspell))) HTH - Carsten