Emacs: Universal Argument (prefix arg)

By Xah Lee. Date: . Last updated: .

What is Universal Argument

universal-argumentCtrl+u】 allows you to give argument to commands, interactively.

What the command do with argument depends on the command. It may repeat the command, or have different behavior (e.g. copy file name without dir path, or copy full path.) .

Example of universal-argument

digit-argument, negative-argument

These are equivalent of universal-argument.

Keyboard shortcuts for digit-argument

Emacs Principle