Basic "info" tutorial in stand-alone program
Entering info mode
Execute an info command such as info diff
Basic concepts
- An info document consists of some nodes and subnodes. A node contains a single topic.
- Header is the first line in a node.
- The text near the bottom right corner of the screen:
--All----means the entire text you are looking at fits on the screen.--Top----means that there is more text below that does not fit.--<percentage>----means that the percentage position in this node.--Bot----means that this is the bottom of the node.
Listing commands
- Displays a brief list of commands, type
?. - Return from list of commands to help node, type
C-x 0that is–press and hold<CTRL>, type anx, then release<CTRL>andx, and press0(zero).
Reading primer
Display a primer for first-timers, type h.
Commands for moving in the present node
- Move to the beginning of the node you are on, type
b. - Move (one viewport - two lines) down, type
<SPC>(space). - Move (one viewport - two lines) up, type
<DEL> or <BACKSPACE>.
Commands for moving between nodes in a linear sequence
- Move to next node at the same level, type
n. - Move to next node regardless of level, type
]. - Move to previous node at the same level, type
p. - Move to previous node regardless of level, type
[. - At the end of one node, type
<SPC>(space). - At the beginning of one node, type
<DEL> or <BACKSPACE>.
Note: n and p will risk skipping some subnodes.
Commands for moving between nodes in a branching structure
Menu mode
- You can only use the mode if there is menu on the present node. An menu example:
* Menu:
* Foo: Help-FOO. A node you can visit for fun.
* Bar: Help-FOO. We have made two ways to get to the same place.
* Help-FOO:: And yet another!
- enter the mode:
- Type
m. Then you can type the subtopic name. - Type
<TAB>to move to next topic line. Type<option>-<TAB>to move to the first topic line.
- Type
- Exit the mode: type
C-g.
Commands for moving to some specified node
Cross reference
In Info documentation, you will see many “cross references”. Cross
references look like this: *Note Cross: Help-Cross.
- Type
fto enter the cross reference mode, then type the cross reference name. - Type
lto return to the node where the cross reference was. - Type
f?that is–pressfand press?–to get a list of the cross references in this node such as:3 completions: Cross Emacs Info Variables Overview of Texinfo
Some intermediate Info commands
i command
Normally, you can get to the index from the main menu of the file with the m
command; then you can use the m command again in the index node to go
to the node that describes the topic you want.i command searches the index for a given topic (a string) and goes
to the node which is listed in the index for that topic.
l command
Revisit nodes in the history list; each successive l command moves one step back through the history.
Note the difference between l and p: l moves to where you
last were, whereas p always moves to the node which the header says
is the Previous node.
d command
The d command gets you instantly to the Directory node which gives a menu of major topics.
t command
The t command moves to the Top node of the manual. This is useful if you want to browse the manual’s main menu, or select some specific top-level menu item.
Quitting info
Type q
To do
- Advanced
infocommands
本作品采用《CC 协议》,转载必须注明作者和本文链接
关于 LearnKu