Skip to content

Commit 4295c49

Browse files
committed
Feature: Exclude 'todo' keywords from spellcheck
The configured 'org_todo_keywords' are subject to spellcheck. In languages other than English, the spellchecker may not consider those words to be spelled correctly. As a result, the spellchecker incorrectly and annoyingly flags these words as misspelled. This patch removes the keywords in the 'org_todo_keywords' from the province of the spellchecker.
1 parent 3aeea06 commit 4295c49

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

syntax/org.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ if !exists('g:loaded_org_syntax')
219219
break
220220
endif
221221
endfor
222-
silent! exec 'syntax match org_todo_keyword_' . l:safename . ' /\*\{1,\}\s\{1,\}\zs' . l:_i .'\(\s\|$\)/ ' . a:todo_headings
222+
silent! exec 'syntax match org_todo_keyword_' . l:safename . ' /\*\{1,\}\s\{1,\}\zs' . l:_i .'\(\s\|$\)/ ' . a:todo_headings . ' contains=@NoSpell'
223223
silent! exec 'hi def link org_todo_keyword_' . l:safename . ' ' . l:group
224224
endfor
225225
endfunction

syntax/orgtodo.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ if !exists('g:loaded_orgtodo_syntax')
3737
break
3838
endif
3939
endfor
40-
silent! exec 'syntax match orgtodo_todo_keyword_' . l:_i . ' /' . l:_i .'/ ' . a:todo_headings
40+
silent! exec 'syntax match orgtodo_todo_keyword_' . l:_i . ' /' . l:_i .'/ ' . a:todo_headings . ' contains=@NoSpell'
4141
silent! exec 'hi def link orgtodo_todo_keyword_' . l:_i . ' ' . l:group
4242
endfor
4343
endfunction

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy