Is there any way to disable just this one warning? Two spaces seems like overkill but maybe that is the lisp standard?

  • 3
    What is your value of option sentence-end-double-space? Have you tried setting it to nil?
    – Drew
    Commented Nov 8, 2016 at 19:16
  • I tried that, it doesn't work with flycheck. Do you know if 2 spaces is a lisp standard? Commented Nov 9, 2016 at 0:13
  • 1
    It has nothing to do with Lisp. It is a convention for plain text, inherited from typewriter days. Please read the doc about sentence-end-double-space.
    – Drew
    Commented Nov 9, 2016 at 18:18

2 Answers 2


UPDATE as of 2017-02-14: With this pull-request merged, now you just have to set sentence-end-double-space to nil and that's it. More information here.


Flycheck uses checkdoc-current-buffer to implement the emacs-lisp-checkdoc checker which (in general) takes sentence-end-double-space into account. However, the checker itself is implemented by calling an emacs subprocess and only passing along the variables whitelisted in flycheck-emacs-lisp-checkdoc-variables, which doesn't include sentence-end-double-space. You can (but since it's a defconst shouldn't) add sentence-end-double-space to flycheck-emacs-lisp-checkdoc-variables to pass it along as well:

(setq-local flycheck-emacs-lisp-checkdoc-variables (cons 'sentence-end-double-space flycheck-emacs-lisp-checkdoc-variables))
  • I just tried this, it seems like the right direction from everything else I've read. But this didn't fix the problem. For now I will use 2 spaces. Is that a lisp standard? Commented Nov 9, 2016 at 0:14
  • Two spaces after a sentence is a convention in Emacs Lisp, see gnu.org/software/emacs/manual/html_node/eintr/…. The above setq-local command and setting sentence-end-double-space to nil followed by flycheck-buffer removed the warning here.
    – Wieland
    Commented Nov 9, 2016 at 17:48
  • @Wieland, what's exactly flycheck-buffer? I don't understand. I tried adding (setq-local flycheck-emacs-lisp-checkdoc-variables (cons 'sentence-end-double-space flycheck-emacs-lisp-checkdoc-variables)) plus setting sentence-end-double-space to nil. The missing piece is flycheck-buffer. But I don't know what do you mean by that? thanks!
    – ninrod
    Commented Feb 13, 2017 at 21:33
  • flycheck-buffer is an interactive function, so you can call it with M-x. However, my pull request to respect the value of sentence-end-double-space by default has been merged a few days ago (github.com/flycheck/flycheck/pull/1199), so this should work automatically with flycheck versions that contain it!
    – Wieland
    Commented Feb 14, 2017 at 10:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.