Commands
In the normal editing mode, Emacs behaves like other text editors: the character keys (a, b, c, 1, 2, 3, etc.) insert the corresponding characters, the arrow keys move the editing point, backspace deletes text, and so forth. Users invoke other commands with modified keystrokes: pressing the control key and/or the meta key/alt key/Escape key in conjunction with a regular key. Every editing command is actually an invocation of a function in the Emacs Lisp environment. Even a command as simple as typing a
to insert the character a involves calling a function: in this case, self-insert-command
.
Alternatively, users preferring IBM Common User Access style keys can use "cua-mode". This has been a third-party package up to, and including, GNU Emacs 21, but is included in GNU Emacs from version 22 onward.
The commands save-buffer
and save-buffers-kill-emacs
use multiple modified keystrokes. For example, C-x C-c
means: while holding down the control key, press x; then, while holding down the control key, press c.
Some Emacs commands work by invoking an external program (such as ispell for spell-checking or gcc for program compilation), parsing the program's output, and displaying the result in Emacs.
Read more about this topic: GNU Emacs, Using Emacs
Famous quotes containing the word commands:
“If writers were too wise, perhaps no books would get written at all. It might be better to ask yourself Why? afterwards than before. Anyway, the force from somewhere in Space which commands you to write in the first place, gives you no choice. You take up the pen when you are told, and write what is commanded. There is no agony like bearing an untold story inside you.”
—Zora Neale Hurston (18911960)
“There are no more ideologies in the authentic sense of false consciousness, only advertisements for the world through its duplication and the provocative lie which does not seek belief but commands silence.”
—Theodor W. Adorno (19031969)
“It is clear that in a monarchy, where he who commands the exceution of the laws generally thinks himself above them, there is less need of virtue than in a popular government, where the person entrusted with the execution of the laws is sensible of his being subject to their direction.”
—Charles Louis de Secondat Montesquieu (16891755)