I’d like to create a plain-text list of words that are exceptions to auto-capitalization. So for e.g. if I type e.g. like I have in this sentence, I don’t want the next word to be automatically capitalized.
See my existing code:
(setq auto-capitalize-predicate
(lambda () (not (looking-back "\\([Ee]\\.g\\|[Uu]\\.S\\|[Ii]\\.e\\|\\.\\.\\)\\.[^.]*" (- (point) 20)))))
This works. However, I’d like to be able to keep this list in a plain text format and add to it. The reason I’m asking is because I wanted to add the word “vs.” to the list (e.g. “good vs. evil”) but I couldn’t get the regexp correct with all the slash escaping. It would be easier if the list looked something like this:
(setq *auto-capitalize-exceptions*
(list "e.g." "i.e. " "vs." "..." "- [ ] "))
Thanks!