0

I am a Linux and EMACS noob. I have installed captain mode in EMACS and love it except that it won't start capitalizing the next sentence unless there are two spaces after a period. I stopped that practice long ago and only put one space after a period. Is there a way to customize captain-mode so that it would recognize a new sentence beginning after only one space? Or is there another mode that would do this instead?

1

1 Answer 1

0

Set variable sentence-end-double-space to nil in your init file:

(setq-default sentence-end-double-space nil)

C-h v tells us:

sentence-end-double-space is a variable defined in paragraphs.el.

Its value is t

Non-nil means a single space does not end a sentence.

This is relevant for filling. See also sentence-end-without-period and colon-double-space.

This value is used by the function sentence-end to construct the regexp describing the end of a sentence, when the value of the variable sentence-end is nil. See Info node ‘(elisp)Standard Regexps’.

1

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.