Skip to main content
added 10 characters in body
Source Link
Dan
  • 33.4k
  • 7
  • 106
  • 171

I currently use the following to enable flyspellflyspell in prog-modeprog-mode:

(add-hook 'prog-mode-hook 'flyspell-prog-mode)

This checks spelling automatically in comments and strings. However, I would like to disable spell checking in strings.

How can I enable flyspell for comments but not strings?How can I enable flyspell for comments but not strings?

I currently use the following to enable flyspell in prog-mode:

(add-hook 'prog-mode-hook 'flyspell-prog-mode)

This checks spelling automatically in comments and strings. However, I would like to disable spell checking in strings.

How can I enable flyspell for comments but not strings?

I currently use the following to enable flyspell in prog-mode:

(add-hook 'prog-mode-hook 'flyspell-prog-mode)

This checks spelling automatically in comments and strings. However, I would like to disable spell checking in strings.

How can I enable flyspell for comments but not strings?

Source Link
Ben
  • 617
  • 5
  • 11

Can you turn on flyspell for comments but NOT strings?

I currently use the following to enable flyspell in prog-mode:

(add-hook 'prog-mode-hook 'flyspell-prog-mode)

This checks spelling automatically in comments and strings. However, I would like to disable spell checking in strings.

How can I enable flyspell for comments but not strings?