emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Matthew Lundin <mdl@imapmail.org>
To: emacs org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Flyspell, org-mode, and urls
Date: Thu, 28 May 2009 16:40:17 -0500	[thread overview]
Message-ID: <m2octc7vpa.fsf@fastmail.fm> (raw)

Hi everyone,

If I might cheat a bit and ask a question that part org-mode, part
another mode....

I have recently begun to use flyspell with org-mode. Everything works
fine, but a minor problem arises when I type a url --- flyspell parses
each element as a normal word, thus resulting in a multi-colored link. I
couldn't find any way of customizing flyspell to exclude certain

I noticed that muse mode has a function that prevents urls from being
improperly "colorized."

| (defun muse-mode-flyspell-p ()
|   "Return non-nil if we should allow spell-checking to occur at point.
| Otherwise return nil.
| This is used to keep links from being improperly colorized by flyspell."
|   (let ((pos (if (bobp) (point) (1- (point)))))
|     (and (not (get-text-property pos 'muse-no-flyspell))
|          (not (get-text-property pos 'muse-link))
|          (save-match-data
|            (null (muse-link-at-point))))))

Would someone happen to know how to accomplish something similar in

Thanks in advance!
- Matt

             reply	other threads:[~2009-05-28 21:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-28 21:40 Matthew Lundin [this message]
2009-06-03 12:41 ` Flyspell, org-mode, and urls Carsten Dominik
2009-06-03 21:04   ` Matthew Lundin

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:

  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=m2octc7vpa.fsf@fastmail.fm \
    --to=mdl@imapmail.org \
    --cc=emacs-orgmode@gnu.org \


* 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


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).