emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sébastien Vauban" <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Org-mode + flyspell = too much (programming code is screened)
Date: Tue, 28 Jul 2009 11:25:31 +0200	[thread overview]
Message-ID: <878wi9b1mc.fsf@mundaneum.com> (raw)

Hello,

I've sent this message to Emacs group one month ago. Never got any reply.
Maybe I'll have more chance here...

I'd want to have flyspell reporting me spelling mistakes in Org-mode.

I did update my `.emacs' this way:

--8<---------------cut here---------------start------------->8---
;; turn on `flyspell' when changing a buffer which was unmodified
(defvar my-flyspell-major-mode-list
  '(html-mode
    latex-mode
    message-mode
    muse-mode
    nxml-mode
    org-mode  ; FIXME If uncommented, flyspell gets crazy!?
    text-mode))

(add-hook 'first-change-hook
          (lambda ()
            (when (and (memq major-mode my-flyspell-major-mode-list)
                       (not flyspell-mode))
              (my-turn-on-flyspell-french))))

(defun my-turn-on-flyspell-french ()
  "Unconditionally turn on flyspell-mode (in French) and call
`flyspell-buffer'."
  (interactive)
  (flyspell-mode 1)
  (ispell-change-dictionary "francais")
  (flyspell-buffer))
--8<---------------cut here---------------end--------------->8---

When doing so, Org-mode buffers get spelled, but my `.emacs' as well. I mean,
not only the comments and the strings, but also the code itself... Don't
understand at all this impact...

Commenting the `org-mode' line returns me with the correct spelling
(prog-aware, I should say) of my Emacs configuration file, but -- then -- my
Org-mode buffers aren't still not spelled anymore...

FYI, I am using:

    /usr/share/emacs/site-lisp/dictionaries-common/flyspell.el

from a fresh Ubuntu 9.04 installation, that is version:

   "FSF emacs CVS20090116(r1.141) + Debian `dictionaries-common' changes (like
    xemacs compatibility)"

BTW, I don't understand that neither in that version, neither in:

    http://www-sop.inria.fr/members/Manuel.Serrano/flyspell/flyspell-1.7o.el

the variable `flyspell-prog-mode-hook' is referenced but does not exist.

Is this anything here someone can help about?

Many thanks in advance...

Best regards,
  Seb

-- 
Sébastien Vauban



_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode-mXXj517/zsQ@public.gmane.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

             reply	other threads:[~2009-07-28  9:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-28  9:25 Sébastien Vauban [this message]
2009-07-28 11:08 ` Org-mode + flyspell = too much (programming code is screened) Richard Riley
2009-07-28 11:22 ` 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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878wi9b1mc.fsf@mundaneum.com \
    --to=wxhgmqzgwmuf-genee64ty+gs+fvcfc7uqw@public.gmane.org \
    --cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).