Capitalization Commands

Keystrokes

Command name

Description

M-c

capitalize-word

Capitalize first letter of word.

M-u

upcase-word

Uppercase word.

M-l

downcase-word

Lowercase word.

M- - M-c

negative-argument; capitalize-word

Capitalize previous word.

M- - M-u

negative-argument; upcase-word

Uppercase previous word.

M- - M-l

negative-argument; downcase-word

Lowercase previous word.

(none)

capitalize-region

Capitalize region.

C-x C-u

upcase-region

Uppercase region

C-x C-l

downcase-region

Lowercase region.

Get Linux in a Nutshell, 6th Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.