From: Carsten Dominik <carsten.dominik@gmail.com>
To: Sebastian Rose <sebastian_rose@gmx.de>
Cc: Emacs-orgmode mailing list <emacs-orgmode@gnu.org>
Subject: Re: Hooks and publishing
Date: Thu, 27 Aug 2009 07:46:46 +0200 [thread overview]
Message-ID: <D835C6E6-5A0B-4F5F-9935-C945AC2FEB10@gmail.com> (raw)
In-Reply-To: <87fxbe9p7v.fsf@gmx.de>
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
next prev parent reply other threads:[~2009-08-27 6:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-26 22:37 Hooks and publishing Sebastian Rose
2009-08-27 5:46 ` Carsten Dominik [this message]
2009-08-27 12:39 ` Sebastian Rose
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=D835C6E6-5A0B-4F5F-9935-C945AC2FEB10@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=sebastian_rose@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.