Function: capitalize-word
capitalize-word is an interactive function defined in casefiddle.c.
Signature
(capitalize-word ARG)
Documentation
Capitalize from point to the end of word, moving over.
With numerical argument ARG, capitalize the next ARG-1 words as well. This gives the word(s) a first character in upper case and the rest lower case.
If point is in the middle of a word, the part of that word before point is ignored when moving forward.
With negative argument, capitalize previous words but do not move.
Key Bindings
Source Code
// Defined in /usr/src/emacs/src/casefiddle.c
{
return casify_word (CASE_CAPITALIZE, arg);
}