emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* How to use ispell in org mode: goal is to skip source blocks
@ 2014-05-01 23:42 Grant Rettke
  2014-05-21 13:21 ` Bastien
  0 siblings, 1 reply; 8+ messages in thread
From: Grant Rettke @ 2014-05-01 23:42 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

Hi,

Org 8.2.6, Emacs 24.3.1.

Working on large literate org documents takes a lot longer when ispell
reports errors in the source
code. My goal is to avoid spell checking anything inside the source
blocks. For example the following lines would not be spell checked at
all:

#+begin_src emacs-lisp
(require 'expand-region)
(global-set-key (kbd "C-=") 'er/expand-region)
#+end_src

Looking around on the org list via a search engine did not yield many results.

Regards,

Grant Rettke | AAAS, ACM, ASA, FSF, IEEE, SIAM, Sigma Xi
grettke@acm.org | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to use ispell in org mode: goal is to skip source blocks
  2014-05-01 23:42 How to use ispell in org mode: goal is to skip source blocks Grant Rettke
@ 2014-05-21 13:21 ` Bastien
  2014-05-21 13:26   ` Igor Sosa Mayor
  0 siblings, 1 reply; 8+ messages in thread
From: Bastien @ 2014-05-21 13:21 UTC (permalink / raw)
  To: Grant Rettke; +Cc: emacs-orgmode@gnu.org

Hi Grant,

Grant Rettke <gcr@wisdomandwonder.com> writes:

> Working on large literate org documents takes a lot longer when ispell
> reports errors in the source
> code. My goal is to avoid spell checking anything inside the source
> blocks.

You can use this:

(add-to-list 'ispell-skip-region-alist '("#\\+begin_src". "#\\+end_src"))

HTH,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to use ispell in org mode: goal is to skip source blocks
  2014-05-21 13:21 ` Bastien
@ 2014-05-21 13:26   ` Igor Sosa Mayor
  2014-05-21 13:36     ` Bastien
  0 siblings, 1 reply; 8+ messages in thread
From: Igor Sosa Mayor @ 2014-05-21 13:26 UTC (permalink / raw)
  To: emacs-orgmode

Bastien <bzg@gnu.org> writes:

[...]

> You can use this:
>
> (add-to-list 'ispell-skip-region-alist '("#\\+begin_src". "#\\+end_src"))

wow, interesting... I was not aware of this feature. Thanks a lot!

-- 
:: Igor Sosa Mayor     :: joseleopoldo1792@gmail.com ::
:: GnuPG: 0x1C1E2890   :: http://www.gnupg.org/      ::
:: jabberid: rogorido  ::                            ::

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to use ispell in org mode: goal is to skip source blocks
  2014-05-21 13:26   ` Igor Sosa Mayor
@ 2014-05-21 13:36     ` Bastien
  2014-05-21 13:41       ` Igor Sosa Mayor
  2014-05-21 13:55       ` Nicolas Goaziou
  0 siblings, 2 replies; 8+ messages in thread
From: Bastien @ 2014-05-21 13:36 UTC (permalink / raw)
  To: Igor Sosa Mayor; +Cc: emacs-orgmode

Igor Sosa Mayor <joseleopoldo1792@gmail.com> writes:

> Bastien <bzg@gnu.org> writes:
>
> [...]
>
>> You can use this:
>>
>> (add-to-list 'ispell-skip-region-alist '("#\\+begin_src". "#\\+end_src"))
>
> wow, interesting... I was not aware of this feature. Thanks a lot!

Not really a FAQ, but useful, so I've added a note here:
http://orgmode.org/worg/org-faq.html#sec-22-4

-- 
 Bastien

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to use ispell in org mode: goal is to skip source blocks
  2014-05-21 13:36     ` Bastien
@ 2014-05-21 13:41       ` Igor Sosa Mayor
  2014-05-21 13:55       ` Nicolas Goaziou
  1 sibling, 0 replies; 8+ messages in thread
From: Igor Sosa Mayor @ 2014-05-21 13:41 UTC (permalink / raw)
  To: emacs-orgmode

Bastien <bzg@gnu.org> writes:

> Not really a FAQ, but useful, so I've added a note here:
> http://orgmode.org/worg/org-faq.html#sec-22-4

good idea! This is a rather unknown feature, I have the impression... 

-- 
:: Igor Sosa Mayor     :: joseleopoldo1792@gmail.com ::
:: GnuPG: 0x1C1E2890   :: http://www.gnupg.org/      ::
:: jabberid: rogorido  ::                            ::

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to use ispell in org mode: goal is to skip source blocks
  2014-05-21 13:36     ` Bastien
  2014-05-21 13:41       ` Igor Sosa Mayor
@ 2014-05-21 13:55       ` Nicolas Goaziou
  2014-05-21 13:58         ` Bastien
  1 sibling, 1 reply; 8+ messages in thread
From: Nicolas Goaziou @ 2014-05-21 13:55 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode, Igor Sosa Mayor

Hello,

Bastien <bzg@gnu.org> writes:

> Igor Sosa Mayor <joseleopoldo1792@gmail.com> writes:
>
>> Bastien <bzg@gnu.org> writes:
>>
>> [...]
>>
>>> You can use this:
>>>
>>> (add-to-list 'ispell-skip-region-alist '("#\\+begin_src". "#\\+end_src"))
>>
>> wow, interesting... I was not aware of this feature. Thanks a lot!
>
> Not really a FAQ, but useful, so I've added a note here:
> http://orgmode.org/worg/org-faq.html#sec-22-4

Note that it shouldn't be necessary in Org 8.3.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to use ispell in org mode: goal is to skip source blocks
  2014-05-21 13:55       ` Nicolas Goaziou
@ 2014-05-21 13:58         ` Bastien
  2014-05-21 14:32           ` Nicolas Goaziou
  0 siblings, 1 reply; 8+ messages in thread
From: Bastien @ 2014-05-21 13:58 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: emacs-orgmode, Igor Sosa Mayor

Nicolas Goaziou <n.goaziou@gmail.com> writes:

>> Not really a FAQ, but useful, so I've added a note here:
>> http://orgmode.org/worg/org-faq.html#sec-22-4
>
> Note that it shouldn't be necessary in Org 8.3.

From what I understand, it isn't necessary if the user is using
flyspell.  But when using M-x ispell-buffer RET directly, source
blocks are still checked.  Or did I miss something?

-- 
 Bastien

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: How to use ispell in org mode: goal is to skip source blocks
  2014-05-21 13:58         ` Bastien
@ 2014-05-21 14:32           ` Nicolas Goaziou
  0 siblings, 0 replies; 8+ messages in thread
From: Nicolas Goaziou @ 2014-05-21 14:32 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode, Igor Sosa Mayor

Bastien <bzg@gnu.org> writes:

> From what I understand, it isn't necessary if the user is using
> flyspell.  But when using M-x ispell-buffer RET directly, source
> blocks are still checked.  Or did I miss something?

No, you're right. I thought about M-x flyspell-buffer after
flyspell-mode has been enabled.


Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-05-21 14:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-01 23:42 How to use ispell in org mode: goal is to skip source blocks Grant Rettke
2014-05-21 13:21 ` Bastien
2014-05-21 13:26   ` Igor Sosa Mayor
2014-05-21 13:36     ` Bastien
2014-05-21 13:41       ` Igor Sosa Mayor
2014-05-21 13:55       ` Nicolas Goaziou
2014-05-21 13:58         ` Bastien
2014-05-21 14:32           ` Nicolas Goaziou

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