3 ms·
Given that emacs has a command 'forward-sentence, which depends on this, I really really like two spaces at the end of a sentence.
by tjic 18y ago
Given that emacs has a command 'forward-sentence, which depends on this, I really really like two spaces at the end of a sentence.
- imgabe 18y agoThank you! transpose-sentences also depends on this. I never put two spaces after a sentence (never knew you were supposed to do that) and when I tried transpose-sentences for the first time a few days ago it didn't work. It was one of those things that's puzzling, but not enough so that I wanted to take the time to figure it out. I'm glad I know now.
- Hexstream 18y agoUse this (maybe in your .emacs) and you can transpose sentences with only 1 space: (setq sentence-end-double-space nil) (setq sentence-end "[.?!][]\"')]\\($\\|\t\\| \\)[ \t\n]")
- yummyfajitas 18y agoFrom my .emacs: ;Sets sentence end to be .?!, but with 1-space after sentence terminator rather than 2. ;I have no idea why 2 spaces is the default. (setq sentence-end "[.?!][]\"')}]*\\($\\| $\\| \\| \\)[ ]*")
- newt0311 18y agoYou might also want (setq sentence-end-double-space nil) in your .emacs. Its a variable used for filling defined in paragraphs.el.