[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Org-mode + flyspell = too much (programming code is screen
Re: [Orgmode] Org-mode + flyspell = too much (programming code is screened)
Tue, 28 Jul 2009 13:22:25 +0200
Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)
this is, what I do to activate flyspell, and it doesn't cause any
(add-hook 'text-mode-hook 'turn-on-flyspell)
(add-hook 'org-mode-hook 'turn-on-flyspell)
(add-hook 'message-mode-hook 'turn-on-flyspell)
Keeps it simple...
Sébastien Vauban <address@hidden> writes:
> 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:
> ;; turn on `flyspell' when changing a buffer which was unmodified
> (defvar my-flyspell-major-mode-list
> org-mode ; FIXME If uncommented, flyspell gets crazy!?
> (add-hook 'first-change-hook
> (lambda ()
> (when (and (memq major-mode my-flyspell-major-mode-list)
> (not flyspell-mode))
> (defun my-turn-on-flyspell-french ()
> "Unconditionally turn on flyspell-mode (in French) and call
> (flyspell-mode 1)
> (ispell-change-dictionary "francais")
> 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:
> 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:
> 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,
Sebastian Rose, EMMA STIL - mediendesign, Niemeyerstr.6, 30449 Hannover
Tel.: +49 (0)511 - 36 58 472
Fax: +49 (0)1805 - 233633 - 11044
mobil: +49 (0)173 - 83 93 417
Email: address@hidden, address@hidden