I'm wondering what's people using to correctly capitalize english strings since ''capitalize'' won't do the job:
(capitalize "can't")
=> "Can'T"
Although writing this function is trivial, I'm wondering if there's a preferred built-in way to do it.
Maybe if you temporarily add '
to the current word constituent syntax table:
(modify-syntax-entry ?' "w")
(capitalize "can't")
=> "Can't"
I have M-c bound to capitalize-word, and it works to capitalize can't
correctly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With